This commit is contained in:
loucass003
2025-12-11 03:57:06 +01:00
parent c937b91267
commit f6ccb5970f

View File

@@ -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);