aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorZufu Liu <unknown>2024-10-17 08:13:49 +1100
committerZufu Liu <unknown>2024-10-17 08:13:49 +1100
commit788413b4b7740b733093188bc17c9873600bf949 (patch)
tree4c7471eaafc3ac318549de20d804a6bf8bb2d237
parent67489680b4064ec0822e4679089330545a7eb581 (diff)
downloadscintilla-mirror-788413b4b7740b733093188bc17c9873600bf949.tar.gz
Bug [#2449]. Only return 1 for WM_MOUSEHWHEEL.
-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