View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0018882 | MMW 5 | General | public | 2022-02-28 04:03 | 2022-04-24 21:12 |
Reporter | drakinite | Assigned To | |||
Priority | urgent | Severity | minor | Reproducibility | N/A |
Status | closed | Resolution | fixed | ||
Product Version | 5.0.3 | ||||
Target Version | 5.0.3 | Fixed in Version | 5.0.3 | ||
Summary | 0018882: Cannot cancel callbacks from window.requestAnimationFrameMM or window.requestFrame | ||||
Description | It is currently not possible to cancel the callbacks from window.requestAnimationFrameMM or window.requestFrame. Since the token type of requestAnimationFrameMM can either be a timeout or an animationFrame, some trickery would need to be used Proposed solution: - The token from queueRequest is incremented by 0.5, so that we can identify the token as a timeout or animation frame by whether it ends in .5. - Add window.cancelFrame, which takes the token and either calls cancelAnimationFrame or clearTimeout as appropriate. | ||||
Tags | No tags attached. | ||||
Fixed in build | 2609 | ||||