mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 14:32:22 -04:00
fix io draw in mobile client (#3160)
This commit is contained in:
parent
839fd7bc8b
commit
f0f9535200
2 changed files with 2 additions and 0 deletions
|
@ -334,6 +334,7 @@ def is_sveltekit_page(path: str) -> bool:
|
||||||
"import-anki-package",
|
"import-anki-package",
|
||||||
"import-csv",
|
"import-csv",
|
||||||
"import-page",
|
"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
|
// initializes lastPosX and lastPosY because it is undefined in touchmove event
|
||||||
function onTouchstart(event: TouchEvent) {
|
function onTouchstart(event: TouchEvent) {
|
||||||
|
const canvas = globalThis.canvas;
|
||||||
canvas.lastPosX = event.touches[0].clientX;
|
canvas.lastPosX = event.touches[0].clientX;
|
||||||
canvas.lastPosY = event.touches[0].clientY;
|
canvas.lastPosY = event.touches[0].clientY;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue