Do not scale cache for transform target (#4358)

* no scaling cache for the current target

* .
This commit is contained in:
Andrea Bogazzi 2017-09-29 00:02:43 -04:00 committed by GitHub
parent d4b51aec6c
commit 3884824f46

View file

@ -679,8 +679,9 @@
*/
_updateCacheCanvas: function() {
if (this.noScaleCache && this.canvas && this.canvas._currentTransform) {
var action = this.canvas._currentTransform.action;
if (action.slice && action.slice(0, 5) === 'scale') {
var target = this.canvas._currentTransform.target,
action = this.canvas._currentTransform.action;
if (this === target && action.slice && action.slice(0, 5) === 'scale') {
return false;
}
}