mirror of
https://github.com/servo/servo
synced 2026-05-13 18:37:30 +02:00
The renderer needs needs to know when touch events processing has finished in the DOM in order to properly handle them. This was previously done using the `CompositorMsg::TouchEventProcessed` message. This message is now redudant with the general-purpose `EmbedderMsg::InputEventHandled` message. This change removes the former message and instead, has the `TouchHandler` keep a `HashMap` of pending touch events which is uses to finish their processing when they come back from script. The goal here is reduce the number of messages sent and to keep the complexity of touch handling more centered in the `TouchHandler`. Testing: This should not change observable behavior, so is covered by existing tests. Signed-off-by: Martin Robinson <mrobinson@igalia.com>