This commit is contained in:
parent
e884ff2e70
commit
c768bb8cec
1 changed files with 2 additions and 0 deletions
|
@ -31,6 +31,7 @@ export const handleTouchEnd = (event: TouchEvent) => {
|
|||
|
||||
const target = event.target as HTMLElement;
|
||||
if (!clientX || !clientY || typeof yDiff === "undefined" ||
|
||||
target.tagName === "AUDIO" ||
|
||||
hasClosestByClassName(target, "b3-dialog") ||
|
||||
hasClosestByClassName(target, "keyboard") ||
|
||||
hasClosestByAttribute(target, "id", "commonMenu") ||
|
||||
|
@ -152,6 +153,7 @@ let previousClientX: number;
|
|||
export const handleTouchMove = (event: TouchEvent) => {
|
||||
const target = event.target as HTMLElement;
|
||||
if (!clientX || !clientY ||
|
||||
target.tagName === "AUDIO" ||
|
||||
hasClosestByClassName(target, "b3-dialog") ||
|
||||
hasClosestByClassName(target, "keyboard") ||
|
||||
hasClosestByAttribute(target, "id", "commonMenu") ||
|
||||
|
|
Loading…
Add table
Reference in a new issue