WIP: Feature Rewrite #87

Draft
thepaperpilot wants to merge 35 commits from feat/ure-rewrite into main
Showing only changes of commit 5b33a0fceb - Show all commits

View file

@ -160,7 +160,7 @@ export function setupDraggableNode<T>(options: {
}, },
drag: function (e: MouseEvent | TouchEvent) { drag: function (e: MouseEvent | TouchEvent) {
const panZoomInstance = options.board.value?.panZoomInstance as PanZoom | undefined; const panZoomInstance = options.board.value?.panZoomInstance as PanZoom | undefined;
if (panZoomInstance == null) { if (panZoomInstance == null || nodeBeingDragged.value == null) {
return; return;
} }
@ -199,11 +199,9 @@ export function setupDraggableNode<T>(options: {
hasDragged.value = true; hasDragged.value = true;
} }
if (nodeBeingDragged.value != null) {
e.preventDefault(); e.preventDefault();
e.stopPropagation(); e.stopPropagation();
} }
}
}; };
return result; return result;
} }