Skip to content

Commit

Permalink
Merge pull request #542 from rdkcentral/fix/onIdle-rafloop
Browse files Browse the repository at this point in the history
fix: Reset onIdle on every RAF subloop
  • Loading branch information
wouterlucas authored Jun 21, 2024
2 parents 1cb841f + 7966eb9 commit 6c68d1c
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 6c68d1c

Please sign in to comment.