Skip to content

cancelAnimationFrame: clarify behavior when called from a frame callback #923

Closed
@lojjic

Description

@lojjic

As discussed in immersive-web/webxr-polyfill#116 (comment) calling xrSession.cancelAnimationFrame from within a frame callback should be able to cancel another subsequent callback within that same frame's callbacks list. A strict reading of the current algorithm as written does not allow for this; it says to search through the "list of animation frame callbacks" for the handle to cancel, but that "list of animation frame callbacks" is explicitly set to an empty list prior to callback execution.

Metadata

Metadata

Assignees

Labels

help wantedThis is a good issue for anyone to pick up and work on filing a PR for.

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions