fix io draw in mobile client (#3160)

This commit is contained in:
Mani 2024-04-23 20:39:26 +08:00 committed by GitHub
parent 839fd7bc8b
commit f0f9535200
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -334,6 +334,7 @@ def is_sveltekit_page(path: str) -> bool:
"import-anki-package",
"import-csv",
"import-page",
"image-occlusion",
]

View File

@ -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;
}