aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/ScintillaWin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'win32/ScintillaWin.cxx')
-rw-r--r--win32/ScintillaWin.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index 62204ec31..cae80473b 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -1653,7 +1653,8 @@ sptr_t ScintillaWin::MouseMessage(unsigned int iMessage, uptr_t wParam, sptr_t l
const int widthToScroll = static_cast<int>(std::lround(charsToScroll * vs.aveCharWidth));
HorizontalScrollToClamped(xOffset + widthToScroll);
}
- return 1;
+ // return 1 for Logitech mouse, https://www.pretentiousname.com/setpoint_hwheel/index.html
+ return (iMessage == WM_MOUSEHWHEEL) ? 1 : 0;
}
// Either SCROLL vertically or ZOOM. We handle the wheel steppings calculation