summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-01-20 21:41:21 +0100
committerGitHub <noreply@github.com>2018-01-20 21:41:21 +0100
commit8f8b032eede264f2958998ccd038e0c61abdf75e (patch)
treeb241a1de003da46928b3e3db016f31cb36e859b1
parent00387cbe1b05c6093baea76d6852af18842c0f65 (diff)
parent017a8521c0e333240448182bd2aa6a6fb3cc5047 (diff)
Merge pull request #15905 from binbitten/fix-capture-win
Fix horizontal scroll for windows platform
-rw-r--r--platform/windows/os_windows.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/windows/os_windows.cpp b/platform/windows/os_windows.cpp
index 5736ae1585..9e22e8aaac 100644
--- a/platform/windows/os_windows.cpp
+++ b/platform/windows/os_windows.cpp
@@ -588,7 +588,7 @@ LRESULT OS_Windows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
mb->set_position(Vector2(old_x, old_y));
}
- if (uMsg != WM_MOUSEWHEEL) {
+ if (uMsg != WM_MOUSEWHEEL && uMsg != WM_MOUSEHWHEEL) {
if (mb->is_pressed()) {
if (++pressrc > 0)