|
@@ -573,7 +573,11 @@ export const useDrag = (
|
|
|
});
|
|
|
|
|
|
shape.dragBoundFunc(function (this: any, _: any, ev: MouseEvent) {
|
|
|
- if (ev.buttons <= 0) return upHandler()
|
|
|
+ if (ev.buttons <= 0) {
|
|
|
+ upHandler()
|
|
|
+
|
|
|
+ return this.absolutePosition();
|
|
|
+ }
|
|
|
const current = invMat.value.point(getOffset(ev, stage.value!.getNode().container()));
|
|
|
drag.value = {
|
|
|
x: current.x - start.x,
|