Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cancel the
requestAnimationFrame
when all roots are disconnected
Given that `pendingElements` was already being cleared, just below, there won't be anything to translate and as far as I can tell keeping the `requestAnimationFrame` running shouldn't be necessary. Note that this was found in the PDF.js project, please refer to [this discussion](mozilla/pdf.js#18313 (comment)), where we're trying to shutdown various asynchronous operations when running tests and currently Fluent make this difficult.
- Loading branch information