Fix horizontal scrolling direction on Windows (#11520)
As per Microsoft documentation, positive values scroll right, not left. GPUI was incorrectly assuming it perfectly mirrored vertical scrolling. Fixes #11515 Release Notes: - N/A
This commit is contained in:
parent
0933426e63
commit
91c1716858
1 changed files with 1 additions and 1 deletions
|
@ -547,7 +547,7 @@ fn handle_mouse_horizontal_wheel_msg(
|
||||||
let wheel_scroll_chars = lock.mouse_wheel_settings.wheel_scroll_chars;
|
let wheel_scroll_chars = lock.mouse_wheel_settings.wheel_scroll_chars;
|
||||||
drop(lock);
|
drop(lock);
|
||||||
let wheel_distance =
|
let wheel_distance =
|
||||||
(wparam.signed_hiword() as f32 / WHEEL_DELTA as f32) * wheel_scroll_chars as f32;
|
(-wparam.signed_hiword() as f32 / WHEEL_DELTA as f32) * wheel_scroll_chars as f32;
|
||||||
let mut cursor_point = POINT {
|
let mut cursor_point = POINT {
|
||||||
x: lparam.signed_loword().into(),
|
x: lparam.signed_loword().into(),
|
||||||
y: lparam.signed_hiword().into(),
|
y: lparam.signed_hiword().into(),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue