Showing
1 changed file
with
8 additions
and
3 deletions
| @@ -345,7 +345,7 @@ export struct PlayUIComponent { | @@ -345,7 +345,7 @@ export struct PlayUIComponent { | ||
| 345 | .width(24) | 345 | .width(24) |
| 346 | .height(24) | 346 | .height(24) |
| 347 | .onClick(() => { | 347 | .onClick(() => { |
| 348 | - | 348 | + clearTimeout(this.time) |
| 349 | WindowModel.shared.setSpecificSystemBarEnabled(false) | 349 | WindowModel.shared.setSpecificSystemBarEnabled(false) |
| 350 | 350 | ||
| 351 | this.displayDirection = | 351 | this.displayDirection = |
| @@ -354,7 +354,9 @@ export struct PlayUIComponent { | @@ -354,7 +354,9 @@ export struct PlayUIComponent { | ||
| 354 | 354 | ||
| 355 | WindowModel.shared.setPreferredOrientation(this.displayDirection == DisplayDirection.VERTICAL ? | 355 | WindowModel.shared.setPreferredOrientation(this.displayDirection == DisplayDirection.VERTICAL ? |
| 356 | window.Orientation.PORTRAIT : | 356 | window.Orientation.PORTRAIT : |
| 357 | - window.Orientation.LANDSCAPE) | 357 | + window.Orientation.LANDSCAPE).then(()=>{ |
| 358 | + this.onChangeMenuVisible() | ||
| 359 | + }) | ||
| 358 | 360 | ||
| 359 | 361 | ||
| 360 | }) | 362 | }) |
| @@ -452,10 +454,13 @@ export struct PlayUIComponent { | @@ -452,10 +454,13 @@ export struct PlayUIComponent { | ||
| 452 | } | 454 | } |
| 453 | 455 | ||
| 454 | quitFullScreen() { | 456 | quitFullScreen() { |
| 457 | + clearTimeout(this.time) | ||
| 455 | this.displayDirection = DisplayDirection.VERTICAL | 458 | this.displayDirection = DisplayDirection.VERTICAL |
| 456 | WindowModel.shared.setPreferredOrientation(this.displayDirection == DisplayDirection.VERTICAL ? | 459 | WindowModel.shared.setPreferredOrientation(this.displayDirection == DisplayDirection.VERTICAL ? |
| 457 | window.Orientation.PORTRAIT : | 460 | window.Orientation.PORTRAIT : |
| 458 | - window.Orientation.LANDSCAPE) | 461 | + window.Orientation.LANDSCAPE).then(()=>{ |
| 462 | + this.onChangeMenuVisible() | ||
| 463 | + }) | ||
| 459 | WindowModel.shared.setSpecificSystemBarEnabled(true) | 464 | WindowModel.shared.setSpecificSystemBarEnabled(true) |
| 460 | } | 465 | } |
| 461 | } | 466 | } |
-
Please register or login to post a comment