fix: node selection rect not dragging correctly

* issue comes from revue-draggable (has been fixed in 0.0.12) naming collision of the prop onDrag (callback fn) and the way JSX events are bound (onDrag instead of drag)
This commit is contained in:
Braks
2021-07-17 21:07:24 +02:00
parent 528f8f4420
commit dfd9e96356
5 changed files with 26 additions and 11 deletions
-3
View File
@@ -56,7 +56,6 @@ export default defineComponent({
return;
}
console.log('mouseDown');
store?.setUserSelection(mousePos);
};
@@ -69,13 +68,11 @@ export default defineComponent({
if (!mousePos) {
return;
}
console.log('mousemove');
store?.updateUserSelection(mousePos);
};
const onMouseUp = () => {
console.log('mosueUp');
store?.unsetUserSelection();
};