Fix two mouse event bugs (#2835)

This PR fixes two bugs we discovered in Zed's mouse event handling while
investigating an interesting and mysterious bug we we were seeing, where
spurious `MouseMoved` events would continuously be dispatched after
control-clicking.

Release Notes:

- Fixed a rendering glitch that could occur after control-clicking
certain elements.
40030f32d9Mikayla Maki committed on 8/9/2023, 4:04:32 PM· committed by GitHubparents6cc0b810b93a30
3 files changedLine totals unavailable