feat(Stage): broadcast display size changes
This commit is contained in:
parent
2f46cd3a4e
commit
512683d48b
|
@ -146,6 +146,7 @@ export class Stage extends Container {
|
|||
// Precalc the transformation ratio and apply it to the UI layer.
|
||||
this._transformRatio = this.size[0] / this.element.clientWidth;
|
||||
this.ui.style.transform = `scale(${1 / this._transformRatio})`;
|
||||
this.emit('displaySizeChanged', this.displaySize);
|
||||
}
|
||||
|
||||
render() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user