Merge pull request #1027 from thecodingmachine/fix_resize_helpcamera
Fixing "camera popup" always display on resize
This commit is contained in:
commit
5f6d9e060c
@ -109,6 +109,7 @@ export class HelpCameraSettingsScene extends DirtyScene {
|
|||||||
|
|
||||||
public onResize(ev: UIEvent): void {
|
public onResize(ev: UIEvent): void {
|
||||||
super.onResize(ev);
|
super.onResize(ev);
|
||||||
|
if (this.helpCameraSettingsOpened) {
|
||||||
const middleX = this.getMiddleX();
|
const middleX = this.getMiddleX();
|
||||||
const middleY = this.getMiddleY();
|
const middleY = this.getMiddleY();
|
||||||
this.tweens.add({
|
this.tweens.add({
|
||||||
@ -118,6 +119,8 @@ export class HelpCameraSettingsScene extends DirtyScene {
|
|||||||
duration: 1000,
|
duration: 1000,
|
||||||
ease: 'Power3'
|
ease: 'Power3'
|
||||||
});
|
});
|
||||||
|
this.dirty = true;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private getMiddleX() : number{
|
private getMiddleX() : number{
|
||||||
|
Loading…
Reference in New Issue
Block a user