Skip to content

Commit e88fb6b

Browse files
committed
docs: document subtlety in setting SVG skin dimensions
1 parent f3a6c47 commit e88fb6b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/SVGSkin.js

+3
Original file line numberDiff line numberDiff line change
@@ -309,6 +309,9 @@ class SVGSkin extends Skin {
309309

310310
this.resetMIPs();
311311
this._svgImageLoaded = true;
312+
// While we're setting the size and rotation center before the image is loaded, this doesn't cause the skin
313+
// to appear in the wrong place/with the wrong size for a few frames while the new image is loading, because
314+
// we don't emit this event, telling drawables using this skin to update, until the image is loaded.
312315
this.emit(Skin.Events.WasAltered);
313316
};
314317

0 commit comments

Comments
 (0)