Merge pull request #15908 from binbitten/fix-capture-win2

Fix horizontal scroll for windows platform [2.1]
This commit is contained in:
Rémi Verschelde 2018-01-20 23:08:17 +01:00 committed by GitHub
commit bf861c8cdf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -589,7 +589,7 @@ LRESULT OS_Windows::WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
mb.y = old_y;
}
if (uMsg != WM_MOUSEWHEEL) {
if (uMsg != WM_MOUSEWHEEL && uMsg != WM_MOUSEHWHEEL) {
if (mb.pressed) {
if (++pressrc > 0)