gown.js icon indicating copy to clipboard operation
gown.js copied to clipboard

updateTransform breaks world scaling if scaled down

Open marfri opened this issue 7 years ago • 2 comments

updateTransform (gown.js:7081) for GOWN.Control with resizeScaling set to true if scaled down scaleX and scaleY are always not 1, thus the resizeScaling gets applied every time until worldTransform.a and worldTransform.d are Infinity.

marfri avatar Apr 04 '17 12:04 marfri

My suggested fix for this is only applying the inversion of the scaling when the world transform was actually updated. The transform of the DisplayObject contains an ID that is counted up whenever the world transform was recalculated. In Pixi v4 they changed when transforms are recalculated (only when the object was changed since the last calculation)

FabianElsmer avatar Aug 18 '17 19:08 FabianElsmer

It would be cleaner if we could avoid that inversion alltogether

FabianElsmer avatar Aug 18 '17 19:08 FabianElsmer