Skip to content

[css-anchor] Allow anchoring to pointer #8639

@jakearchibald

Description

@jakearchibald

Right now, if you want to drag an element on the web, you need to listen for pointermove events and update the position of the element. This means the operation is bound by the event loop, and can easily jank.

It feels like anchoring could solve this, by anchoring to a particular pointer. Then, the element can be moved to a layer in the compositor, and its position can be updated without blocking on the event loop.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions