fix bug with dragging in the status grid view

This commit is contained in:
marlon-erler
2026-09-25 02:08:41 +02:00
parent 7cb816d9e3
commit 2ed43598a8
5 changed files with 6 additions and 4 deletions
+1
View File
@@ -308,6 +308,7 @@ export function implementPinchZoom(canvas: HTMLElement, data: React.State<PinchT
canvas.addEventListener("mousedown", (event: MouseEvent) => {
const target = event.target as HTMLElement|undefined;
console.log(target);
if (!target || !target.classList.contains("allow-drag-move")) return;
event.preventDefault();
initialZoom = data.value.zoom;