Skip to content

Commit

Permalink
Fix scroll direction in pedigree view
Browse files Browse the repository at this point in the history
Fix the mouse scroll direction in the pedigree view when the
Left <-> Right option is selected in the context menu.
  • Loading branch information
Nick-Hall committed Jan 2, 2025
1 parent 3b51700 commit a1234f2
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions gramps/plugins/view/pedigreeview.py
Original file line number Diff line number Diff line change
Expand Up @@ -1609,10 +1609,8 @@ def cb_bg_scroll_event(self, widget, event):
if variable self.scroll_direction setup.
"""
if self.scroll_direction and event.type == Gdk.EventType.SCROLL:
if event.direction == Gdk.ScrollDirection.UP:
event.direction = Gdk.ScrollDirection.LEFT
elif event.direction == Gdk.ScrollDirection.DOWN:
event.direction = Gdk.ScrollDirection.RIGHT
event.delta_x = event.delta_y
event.delta_y = 0
return False

def cb_person_button_press(self, obj, event, person_handle, family_handle):
Expand Down

0 comments on commit a1234f2

Please sign in to comment.