Skip to content

Commit

Permalink
Scroll horizontally with shift + mouse scroll wheel
Browse files Browse the repository at this point in the history
Fix #811
  • Loading branch information
kbengs committed Jan 20, 2023
1 parent a2009fb commit 08758d5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pdfarranger/pdfarranger.py
Original file line number Diff line number Diff line change
Expand Up @@ -2052,6 +2052,9 @@ def sw_button_press_event(self, _scrolledwindow, event):

def sw_scroll_event(self, _scrolledwindow, event):
"""Manages mouse scroll events in scrolledwindow"""
if event.state & Gdk.ModifierType.SHIFT_MASK:
# Scroll horizontally
return
if event.direction == Gdk.ScrollDirection.SMOOTH:
dy = event.get_scroll_deltas()[2]
if dy < 0:
Expand Down

0 comments on commit 08758d5

Please sign in to comment.