migrate to sqlite

NOTE: extension loading crashes docker (for some reason)
This commit is contained in:
2025-09-07 15:09:14 +02:00
parent 5c3057e998
commit a1c9832515
32 changed files with 536 additions and 256 deletions

View File

@@ -8,7 +8,7 @@ const width = computed(() => Math.abs(rect.a.x - rect.b.x));
const height = computed(() => Math.abs(rect.a.y - rect.b.y));
function onDocumentPointerDown(e: MouseEvent) {
if (e.button !== 0) {
if (e.button !== 0 || matchMedia('(pointer:coarse)').matches) {
return;
}
@@ -21,7 +21,7 @@ function onDocumentPointerDown(e: MouseEvent) {
}
function onDocumentPointerMove(e: MouseEvent) {
if (!rect.enabled) {
if (!rect.enabled || matchMedia('(pointer:coarse)').matches) {
return;
}
@@ -39,7 +39,11 @@ function onDocumentPointerMove(e: MouseEvent) {
}
function onDocumentPointerUp(e: MouseEvent) {
if (e.button !== 0 || !rect.enabled) {
if (
!rect.enabled ||
e.button !== 0 ||
matchMedia('(pointer:coarse)').matches
) {
return;
}