mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-04 22:57:19 +02:00
Only set "pointerEvents" property on touch-supported devices
This commit is contained in:
parent
82a9a91534
commit
309feca3f9
@ -9396,8 +9396,10 @@ function cloneStreamHudButton($orgButton, label, svg_icon) {
|
||||
}
|
||||
};
|
||||
|
||||
$container.addEventListener('transitionstart', onTransitionStart);
|
||||
$container.addEventListener('transitionend', onTransitionEnd);
|
||||
if (HAS_TOUCH_SUPPORT) {
|
||||
$container.addEventListener('transitionstart', onTransitionStart);
|
||||
$container.addEventListener('transitionend', onTransitionEnd);
|
||||
}
|
||||
|
||||
const $button = $container.querySelector('button');
|
||||
$button.setAttribute('title', label);
|
||||
|
Loading…
x
Reference in New Issue
Block a user