mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
Fix action handler for touch (#6775)
* Fix action handler for touch * Console
This commit is contained in:
parent
6f673359ff
commit
1997e63b7c
@ -150,13 +150,13 @@ class ActionHandler extends HTMLElement implements ActionHandler {
|
||||
}
|
||||
// Prevent mouse event if touch event
|
||||
ev.preventDefault();
|
||||
if (
|
||||
["touchend", "touchcancel"].includes(ev.type) &&
|
||||
this.timer === undefined
|
||||
) {
|
||||
return;
|
||||
}
|
||||
if (options.hasHold) {
|
||||
if (
|
||||
["touchend", "touchcancel"].includes(ev.type) &&
|
||||
this.timer === undefined
|
||||
) {
|
||||
return;
|
||||
}
|
||||
clearTimeout(this.timer);
|
||||
this.stopAnimation();
|
||||
this.timer = undefined;
|
||||
|
Loading…
x
Reference in New Issue
Block a user