mirror of
https://github.com/servo/servo
synced 2026-04-26 01:25:32 +02:00
We used to create a `tick_start` timestamp at each
`dispatch_scroll_action` and `dispatch_pointermove_action`.
This is really bad, as the variable should represent the start of
current tick,
but we may end up with distinct values for different actions, since we
can sleep for some pointers:
d6fdd30c19/components/webdriver_server/actions.rs (L535-L537)
Testing:
This makes all actions in the current tick share the same `tick_start`,
and changes the number of actions dispatched.
A test for this would be really contrived.
Signed-off-by: Euclid Ye <yezhizhenjiakang@gmail.com>