Skip to content

Commit ed2e423

Browse files
committed
Add One-Hand mice wheel scroll diff and merge (#2435) (11)
1 parent 4fb7dde commit ed2e423

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Src/MouseHook.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ class CMouseHook
33
public:
44
static void SetMouseHook();
55
static void UnhookMouseHook();
6-
static bool IsRightWheelScrolling() { return std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now() - m_endTimeRightWheelScrolling).count() < 100; }
6+
static bool IsRightWheelScrolling() { return m_bIgnoreRBUp || (std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now() - m_endTimeRightWheelScrolling).count() < 100); }
77
private:
88
static LRESULT CALLBACK MouseProc(int nCode, WPARAM wParam, LPARAM lParam);
99
inline static void StartRightWheelScrolling() { m_bIgnoreRBUp = true; }

0 commit comments

Comments
 (0)