View Issue Details

IDProjectCategoryView StatusLast Update
0018882MMW 5Generalpublic2022-04-24 21:12
Reporterdrakinite Assigned To 
PriorityurgentSeverityminorReproducibilityN/A
Status closedResolutionfixed 
Product Version5.0.3 
Target Version5.0.3Fixed in Version5.0.3 
Summary0018882: Cannot cancel callbacks from window.requestAnimationFrameMM or window.requestFrame
DescriptionIt 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.
TagsNo tags attached.
Fixed in build2609

Activities

drakinite

2022-03-01 04:23

developer   ~0067142

Added in 2609. Testing note: Using cancelFrame() on the most recent version of 3D View onHide.

peke

2022-04-24 21:12

developer   ~0067736

Verified 2616 and 3D View 1.0.3