mirror of
https://github.com/home-assistant/frontend.git
synced 2026-04-07 03:14:00 +00:00
Fix action handler for touch (#6775)
* Fix action handler for touch * Console
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user