mirror of
https://github.com/SlimeVR/SlimeVR-Server.git
synced 2026-04-06 02:01:58 +02:00
Lint
This commit is contained in:
@@ -364,9 +364,12 @@ export function DrawerTooltip({
|
||||
};
|
||||
|
||||
const touchEnd = (e: MouseEvent | TouchEvent) => {
|
||||
if (e.currentTarget instanceof HTMLButtonElement && e.currentTarget.hasAttribute('disabled')) {
|
||||
e.preventDefault()
|
||||
return
|
||||
if (
|
||||
e.currentTarget instanceof HTMLButtonElement &&
|
||||
e.currentTarget.hasAttribute('disabled')
|
||||
) {
|
||||
e.preventDefault();
|
||||
return;
|
||||
}
|
||||
if (Date.now() - touchTimestamp.current < TOOLTIP_DELAY) {
|
||||
clearTimeout(touchTimeout.current);
|
||||
|
||||
Reference in New Issue
Block a user