gown.js
gown.js copied to clipboard
updateTransform breaks world scaling if scaled down
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.
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)
It would be cleaner if we could avoid that inversion alltogether