mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 07:37: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);
|
if (HAS_TOUCH_SUPPORT) {
|
||||||
$container.addEventListener('transitionend', onTransitionEnd);
|
$container.addEventListener('transitionstart', onTransitionStart);
|
||||||
|
$container.addEventListener('transitionend', onTransitionEnd);
|
||||||
|
}
|
||||||
|
|
||||||
const $button = $container.querySelector('button');
|
const $button = $container.querySelector('button');
|
||||||
$button.setAttribute('title', label);
|
$button.setAttribute('title', label);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user