mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-14 12:56:37 +00:00
Fix back gesture on Android activating buttons (#22852)
Touchcancel event cancels touch regardless of cancelled flag Co-authored-by: Benjamin Paul <benjamin.ian.paul@gmail.com>
This commit is contained in:
parent
fa821b1c4f
commit
1f5f6c5f8a
@ -149,7 +149,10 @@ class ActionHandler extends HTMLElement implements ActionHandlerType {
|
||||
|
||||
element.actionHandler.end = (ev: Event) => {
|
||||
// Don't respond when moved or scrolled while touch
|
||||
if (["touchend", "touchcancel"].includes(ev.type) && this.cancelled) {
|
||||
if (
|
||||
ev.type === "touchcancel" ||
|
||||
(ev.type === "touchend" && this.cancelled)
|
||||
) {
|
||||
return;
|
||||
}
|
||||
const target = ev.target as HTMLElement;
|
||||
|
Loading…
x
Reference in New Issue
Block a user