Merge pull request #547 from fsih/fixReshape

Fix reshape
This commit is contained in:
Paul Kaplan 2018-07-06 11:44:33 -04:00 committed by GitHub
commit 97e3cd2a00
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}