aboutsummaryrefslogtreecommitdiffhomepage
path: root/win32/ScintillaWin.cxx
diff options
context:
space:
mode:
authorZufu Liu <unknown>2022-10-23 08:45:52 +1100
committerZufu Liu <unknown>2022-10-23 08:45:52 +1100
commitff043e669aabcfbc71180fde97c9ef28bfe01c02 (patch)
treeadaedbe69f50af639539993e5a1920bf9c49cb5f /win32/ScintillaWin.cxx
parent758ee3666b0ee5b1adc91c269ec845f9db6f8dea (diff)
downloadscintilla-mirror-ff043e669aabcfbc71180fde97c9ef28bfe01c02.tar.gz
Feature [feature-requests:#1457] Reuse MouseWheelDelta for autocompletion lists.
This code triggers when wheel rotated and mouse is outside list.
Diffstat (limited to 'win32/ScintillaWin.cxx')
-rw-r--r--win32/ScintillaWin.cxx14
1 files changed, 0 insertions, 14 deletions
diff --git a/win32/ScintillaWin.cxx b/win32/ScintillaWin.cxx
index 9ffd40d06..c405ed8d1 100644
--- a/win32/ScintillaWin.cxx
+++ b/win32/ScintillaWin.cxx
@@ -276,20 +276,6 @@ public:
}
};
-class MouseWheelDelta {
- int wheelDelta = 0;
-public:
- bool Accumulate(WPARAM wParam) noexcept {
- wheelDelta -= GET_WHEEL_DELTA_WPARAM(wParam);
- return std::abs(wheelDelta) >= WHEEL_DELTA;
- }
- int Actions() noexcept {
- const int actions = wheelDelta / WHEEL_DELTA;
- wheelDelta = wheelDelta % WHEEL_DELTA;
- return actions;
- }
-};
-
struct HorizontalScrollRange {
int pageWidth;
int documentWidth;