How to prevent Event.Resize to trigger twice on displayState change to FULL_SCREEN?

前端 未结 2 493
-上瘾入骨i
-上瘾入骨i 2021-01-26 10:19

I have an application with an fullscreen button, when that button is clicked I change the displayState of stage to StageDisplayState.FULL_SCREEN_INTERACTIVE.

2条回答
  •  迷失自我
    2021-01-26 10:38

    Use a boolean. For example, make it true in the resize function and check if it's not true to execute it.

提交回复
热议问题