mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-03 03:10:16 +01:00
This commit is contained in:
parent
12c9151ab3
commit
8e93286077
3 changed files with 42 additions and 31 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue