fix bug with dragging in the status grid view
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user