Skip to content

Commit

Permalink
fix: Reset onIdle on every RAF subloop
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterlucas committed Jun 14, 2024
1 parent 1cb841f commit 7966eb9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/platforms/browser/WebPlatform.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -101,12 +101,10 @@ export default class WebPlatform {
}

loop() {
// reset idle state
this._onIdle = false;

let self = this;
let lp = function () {
self._awaitingLoop = false;
self._onIdle = false;
if (self._looping) {
self.stage.updateFrame();
if (self.stage.getOption("pauseRafLoopOnIdle")) {
Expand Down

0 comments on commit 7966eb9

Please sign in to comment.