migrate to sqlite
NOTE: extension loading crashes docker (for some reason)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user