WebKit / standards-positions

WebKit's positions on emerging web specifications
https://webkit.org/standards-positions/
254 stars 22 forks source link

Support for PointerEvent getCoalescedEvents() API #374

Closed mustaqahmed closed 3 months ago

mustaqahmed commented 4 months ago

WebKittens

@gsnedders @marcoscaceres

Title of the spec

Pointer Events level 3: Coalesced events

URL to the spec

https://w3c.github.io/pointerevents/#coalesced-events

URL to the spec's repository

https://github.com/w3c/pointerevents

Issue Tracker URL

No response

Explainer URL

No response

TAG Design Review URL

No response

Mozilla standards-positions issue URL

No response

WebKit Bugzilla URL

No response

Radar URL

No response

Description

For performance reasons, user agents may choose not to send all pointermove events to the main thread. This optimization reduces the granularity and fidelity of pointer movements from the JavaScript's perspective, particularly for fast and large movements. PointerEvent.getCoalescedEvents() exposes the "held-back" events to the JavaScript as a list within a single pointermove event.

Ahmad-S792 commented 4 months ago

@rr-codes & @aprotyas

nt1m commented 4 months ago

We've started implementing this and we don't currently have any concerns. I'll mark this as neutral in a week pending objections.