mirror of
https://github.com/Hopiu/fabric.js.git
synced 2026-05-19 19:01:52 +00:00
Do not scale cache for transform target (#4358)
* no scaling cache for the current target * .
This commit is contained in:
parent
d4b51aec6c
commit
3884824f46
1 changed files with 3 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue