mirror of
https://github.com/servo/servo
synced 2026-05-11 09:26:59 +02:00
Remove embedder defined `ScrollEvent` and merge the payload of it to the `SetScrollStates` message which tell the `ScriptThread` to update the scroll state. In the past, `ScrollEvent` is defined as a embedder's `InputEvent` and being used only to forward the external scroll node id for a node that is considered scrolled. This make us sends an additional message to constellation and additionally, `ScrollEvent` went through lengthy pipelines as it was deemed as an embedder input event, albeit being a synthetic input fired by `WebviewRenderer`. Subsequently, we could introduce a flag to detect whether the scrolling is still ongoing or not (like whether it is still flinging) for `scrollend` event. Testing: No WPT changes --------- Signed-off-by: Jo Steven Novaryo <steven.novaryo@gmail.com> Signed-off-by: Martin Robinson <mrobinson@igalia.com> Co-authored-by: Martin Robinson <mrobinson@igalia.com>