diff options
author | Simon B / GrausamkeitEnjoyer / God's Eye View Developer <56446615+DevGev@users.noreply.github.com> | 2025-03-13 03:03:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-13 02:03:46 +0000 |
commit | 205b97d5edbca6f24b189b564ec5f7129ba40228 (patch) | |
tree | c541ed356eabfa6d645c40a68b4cfe8d57ba4263 /tests/html/simple-overflow-scroll.html | |
parent | 98816b753c501aab99ac11549c447076cb1e15eb (diff) | |
download | servo-205b97d5edbca6f24b189b564ec5f7129ba40228.tar.gz servo-205b97d5edbca6f24b189b564ec5f7129ba40228.zip |
compositing: Move `cursor_pos` member and update it in `update_cursor()` (#35934)
Previously a member of IOCompositor, the `cursor_pos` DevicePoint did not reflect
the true position of the cursor. This caused flickering on mouse hover,
see [issue #35875.] The value of `cursor_pos` within IOCompositor
was always (x=0, y=0) regardless of the true cursor position
(it was never updated, must be a bug or an oversight?).
Moving `cursor_pos` to `ServoRenderer`, updating `cursor_pos` on `dispatch_input_event()`,
and storing cursor position in `ServoRenderer` through method `update_cursor()` fixes
the flickering previously observed.
Signed-off-by: devgev <leifminfagel@gmail.com>
Diffstat (limited to 'tests/html/simple-overflow-scroll.html')
0 files changed, 0 insertions, 0 deletions