Fix T82870: Continuous grab, jumps when cursor crosses a window border.
We can have a queue of multiple events with the same cursor position.
After wrapping and accumulation, these events with old cursor position
lead to extra accumulation.
This issue was present earlier but became particularly noticeable
after rB96200110eb0f and rB9e85812acc88.
- Enable event coalescing for wrap/grab modes
- Use mouseLocationOutsideOfEventStream instead of locationInWindow
- Use time of last wrap event, similar to how it is already done for Linux