From 90bc640dbb939d60c311fc0da409e46ef6730546 Mon Sep 17 00:00:00 2001 From: DD Liu Date: Fri, 6 Jul 2018 11:29:06 -0400 Subject: [PATCH] Fix reshape --- src/helper/selection-tools/reshape-tool.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/helper/selection-tools/reshape-tool.js b/src/helper/selection-tools/reshape-tool.js index 0b45a6ba..2dc4af0f 100644 --- a/src/helper/selection-tools/reshape-tool.js +++ b/src/helper/selection-tools/reshape-tool.js @@ -227,7 +227,11 @@ class ReshapeTool extends paper.Tool { } handleMouseUp (event) { if (event.event.button > 0 || !this.active) return; // only first mouse button - this._modeMap[this.mode].onMouseUp(event); + if (this.mode === ReshapeModes.SELECTION_BOX) { + this._modeMap[this.mode].onMouseUpVector(event); + } else { + this._modeMap[this.mode].onMouseUp(event); + } this.mode = ReshapeModes.SELECTION_BOX; this.active = false; }