mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
parent
6b9ba7367d
commit
2a23487163
@ -110,7 +110,8 @@ class LongPress extends HTMLElement implements LongPress {
|
|||||||
const clickEnd = (ev: Event) => {
|
const clickEnd = (ev: Event) => {
|
||||||
if (
|
if (
|
||||||
this.cooldownEnd ||
|
this.cooldownEnd ||
|
||||||
(ev instanceof TouchEvent && this.timer === undefined)
|
(["touchend", "touchcancel"].includes(ev.type) &&
|
||||||
|
this.timer === undefined)
|
||||||
) {
|
) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user