adding drag in network map
Deploy / deploy (push) Successful in 39s

This commit is contained in:
2026-05-12 10:22:18 +02:00
parent 18c1c79e10
commit ae9a5306f3
+8
View File
@@ -1166,6 +1166,14 @@ function getShapeResizeHandleAt(mx, my) {
}
function onMouseDown(e) {
if (e.button === 2) {
isPanning = true;
panStartX = e.clientX;
panStartY = e.clientY;
canvas.style.cursor = 'grabbing';
return;
}
if (e.button !== 0) return;
const rect = canvas.getBoundingClientRect();
const mx = e.clientX - rect.left - panX;
const my = e.clientY - rect.top - panY;