Fix vertical scroll/zoom for precision touchpad
Adds factor data for vertical mousewheel event, in line with horizontal mousewheel event
This commit is contained in:
parent
2f1bc509dc
commit
63ba15a518
1 changed files with 2 additions and 3 deletions
|
@ -2445,7 +2445,7 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
|
|||
} else {
|
||||
mb->set_button_index(MOUSE_BUTTON_WHEEL_DOWN);
|
||||
}
|
||||
|
||||
mb->set_factor(fabs((double)motion / (double)WHEEL_DELTA));
|
||||
} break;
|
||||
case WM_MOUSEHWHEEL: {
|
||||
mb->set_pressed(true);
|
||||
|
@ -2456,11 +2456,10 @@ LRESULT DisplayServerWindows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARA
|
|||
|
||||
if (motion < 0) {
|
||||
mb->set_button_index(MOUSE_BUTTON_WHEEL_LEFT);
|
||||
mb->set_factor(fabs((double)motion / (double)WHEEL_DELTA));
|
||||
} else {
|
||||
mb->set_button_index(MOUSE_BUTTON_WHEEL_RIGHT);
|
||||
mb->set_factor(fabs((double)motion / (double)WHEEL_DELTA));
|
||||
}
|
||||
mb->set_factor(fabs((double)motion / (double)WHEEL_DELTA));
|
||||
} break;
|
||||
case WM_XBUTTONDOWN: {
|
||||
mb->set_pressed(true);
|
||||
|
|
Loading…
Reference in a new issue