mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-06-28 06:46:12 +00:00
This commit is contained in:
@@ -14,6 +14,7 @@
|
||||
@use "business/graph" as *;
|
||||
@use "business/layout" as *;
|
||||
@use "business/block" as *;
|
||||
@use "business/resize" as *;
|
||||
@use "util/reset" as *;
|
||||
@use "util/function" as *;
|
||||
@use "business/history" as *;
|
||||
|
||||
@@ -46,8 +46,8 @@ const handleManualTouchStart = (e: TouchEvent) => {
|
||||
const mouseEvent = new MouseEvent("mousedown", {
|
||||
bubbles: true,
|
||||
cancelable: true,
|
||||
clientX:touch.clientX,
|
||||
clientY:touch.clientY,
|
||||
clientX: touch.clientX,
|
||||
clientY: touch.clientY,
|
||||
button: 0,
|
||||
view: window,
|
||||
});
|
||||
@@ -79,8 +79,8 @@ const handleManualTouchEnd = (e: TouchEvent) => {
|
||||
if (typeof document.onmouseup !== "function") return;
|
||||
const target = e.changedTouches[0].target || document.body;
|
||||
target.dispatchEvent(new MouseEvent("mouseup", {
|
||||
clientX:e.changedTouches[0].clientX,
|
||||
clientY:e.changedTouches[0].clientY,
|
||||
clientX: e.changedTouches[0].clientX,
|
||||
clientY: e.changedTouches[0].clientY,
|
||||
bubbles: true,
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user