diff options
author | Neil <nyamatongwe@gmail.com> | 2024-10-14 08:23:38 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2024-10-14 08:23:38 +1100 |
commit | 5bc7ef88781d05bab3abeeb4113da6b210ee8798 (patch) | |
tree | 6635fc52dcb77c4164669c9b079d46877b0e36ce | |
parent | 0810c2b873a754d78c3d269a279f40e2f7ade035 (diff) | |
download | scintilla-mirror-5bc7ef88781d05bab3abeeb4113da6b210ee8798.tar.gz |
Bug [#2449]. Fix horizontal scrolling with Logi Options+.
Return 1 instead of documented 0 as this prevents interception of following
WM_MOUSEHWHEEL messages, likely by Logi Options+ mouse driver.
-rw-r--r-- | win32/ScintillaWin.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx index 7242f590d..62204ec31 100644 --- a/win32/ScintillaWin.cxx +++ b/win32/ScintillaWin.cxx @@ -1653,7 +1653,7 @@ 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 0; + return 1; } // Either SCROLL vertically or ZOOM. We handle the wheel steppings calculation |