fix io draw in mobile client (#3160)
This commit is contained in:
parent
839fd7bc8b
commit
f0f9535200
@ -334,6 +334,7 @@ def is_sveltekit_page(path: str) -> bool:
|
||||
"import-anki-package",
|
||||
"import-csv",
|
||||
"import-page",
|
||||
"image-occlusion",
|
||||
]
|
||||
|
||||
|
||||
|
@ -141,6 +141,7 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
|
||||
|
||||
// initializes lastPosX and lastPosY because it is undefined in touchmove event
|
||||
function onTouchstart(event: TouchEvent) {
|
||||
const canvas = globalThis.canvas;
|
||||
canvas.lastPosX = event.touches[0].clientX;
|
||||
canvas.lastPosY = event.touches[0].clientY;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user