Skip to content

Commit

Permalink
a rushed fix (fabricjs#5177)
Browse files Browse the repository at this point in the history
  • Loading branch information
asturur authored Aug 19, 2018
1 parent 1413bae commit ae4cdc1
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/mixins/canvas_gestures.mixin.js
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,11 @@

target.setPositionByOrigin(constraintPosition, t.originX, t.originY);

this._fire('scaling', target, e);
this._fire('scaling', {
target: target,
e: e,
transform: t,
});
},

/**
Expand All @@ -153,7 +157,11 @@
return;
}
t.target.rotate(radiansToDegrees(degreesToRadians(curAngle) + t.theta));
this._fire('rotating', t.target, e);
this._fire('rotating', {
target: t.target,
e: e,
transform: t,
});
}
});
})();

0 comments on commit ae4cdc1

Please sign in to comment.