mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-23 05:52:42 -05:00
Fix reshape
This commit is contained in:
parent
74196228f1
commit
90bc640dbb
1 changed files with 5 additions and 1 deletions
|
@ -227,7 +227,11 @@ class ReshapeTool extends paper.Tool {
|
|||
}
|
||||
handleMouseUp (event) {
|
||||
if (event.event.button > 0 || !this.active) return; // only first mouse button
|
||||
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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue