This commit is contained in:
Vanessa 2023-11-17 22:35:16 +08:00
parent 12c9151ab3
commit 8e93286077
3 changed files with 42 additions and 31 deletions

View file

@ -8,7 +8,7 @@ import {popMenu} from "../menu";
import {activeBlur, hideKeyboardToolbar} from "./keyboardToolbar";
import {isIPhone} from "../../protyle/util/compatibility";
import {App} from "../../index";
import {globalTouchEnd} from "../../boot/globalEvent/touch";
import {globalTouchEnd, globalTouchStart} from "../../boot/globalEvent/touch";
let clientX: number;
let clientY: number;
@ -145,6 +145,9 @@ export const handleTouchEnd = (event: TouchEvent, app: App) => {
};
export const handleTouchStart = (event: TouchEvent) => {
if (globalTouchStart(event)) {
return;
}
firstDirection = null;
xDiff = undefined;
yDiff = undefined;