Skip to content

Commit

Permalink
Add One-Hand mice wheel scroll diff and merge (#2435) (11)
Browse files Browse the repository at this point in the history
  • Loading branch information
sdottaka committed Oct 13, 2024
1 parent 4fb7dde commit ed2e423
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Src/MouseHook.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class CMouseHook
public:
static void SetMouseHook();
static void UnhookMouseHook();
static bool IsRightWheelScrolling() { return std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now() - m_endTimeRightWheelScrolling).count() < 100; }
static bool IsRightWheelScrolling() { return m_bIgnoreRBUp || (std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::system_clock::now() - m_endTimeRightWheelScrolling).count() < 100); }
private:
static LRESULT CALLBACK MouseProc(int nCode, WPARAM wParam, LPARAM lParam);
inline static void StartRightWheelScrolling() { m_bIgnoreRBUp = true; }
Expand Down

0 comments on commit ed2e423

Please sign in to comment.