Skip to content

Commit

Permalink
MDL-75692 core_h5p: Debounce resize events
Browse files Browse the repository at this point in the history
* Make sure that we don't call the resize event too often to
avoid infinite loop when content is auto resizing (fonts for example)
  • Loading branch information
laurentdavid committed Jul 22, 2024
1 parent 554a790 commit 8769b05
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h5p/js/embed.js
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ document.onreadystatechange = async() => {
} else {
H5PEmbedCommunicator.send('hello');
}
}, 0);
}, 250);
});

// Get emitted xAPI data.
Expand Down

0 comments on commit 8769b05

Please sign in to comment.