Skip to content

Commit

Permalink
also interpret button5 as wheel-down
Browse files Browse the repository at this point in the history
fixes #321
  • Loading branch information
rolandwalker authored and jonas committed Jun 20, 2017
1 parent 93a30d3 commit 226bf2c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tig.c
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,11 @@ handle_mouse_event(void)
if (!view)
return REQ_NONE;

#ifdef BUTTON5_PRESSED
if (event.bstate & (BUTTON2_PRESSED | BUTTON5_PRESSED))
#else
if (event.bstate & BUTTON2_PRESSED)
#endif
return REQ_SCROLL_WHEEL_DOWN;

if (event.bstate & BUTTON4_PRESSED)
Expand Down

0 comments on commit 226bf2c

Please sign in to comment.