mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2025-03-13 22:50:01 -04:00
Merge pull request #1108 from adroitwhiz/no-origrot
Stop setting item.data.origRot
This commit is contained in:
commit
013aa47bc9
1 changed files with 1 additions and 5 deletions
|
@ -37,10 +37,6 @@ class RotateTool {
|
|||
|
||||
for (let i = 0; i < this.rotItems.length; i++) {
|
||||
const item = this.rotItems[i];
|
||||
|
||||
if (!item.data.origRot) {
|
||||
item.data.origRot = item.rotation;
|
||||
}
|
||||
|
||||
item.rotate(rotAngle - this.prevRot, this.rotGroupPivot);
|
||||
}
|
||||
|
@ -49,7 +45,7 @@ class RotateTool {
|
|||
}
|
||||
onMouseUp (event) {
|
||||
if (event.event.button > 0) return; // only first mouse button
|
||||
|
||||
|
||||
this.rotItems.length = 0;
|
||||
this.rotGroupPivot = null;
|
||||
this.prevRot = 90;
|
||||
|
|
Loading…
Reference in a new issue