Skip to content

Commit

Permalink
Fix a zoom fit by double-click issue
Browse files Browse the repository at this point in the history
When clicking on a page that is zoomed so that it does not fit into
window, the page will jump up/down on every click. Zoom fit by double-
clicking the page does not work then.
  • Loading branch information
kbengs authored and jeromerobert committed May 15, 2022
1 parent 055d5df commit 1895e12
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pdfarranger/pdfarranger.py
Original file line number Diff line number Diff line change
Expand Up @@ -1839,7 +1839,8 @@ def iv_button_press_event(self, iconview, event):
selection = iconview.get_selected_items()
if self.click_path and self.click_path in selection:
self.pressed_button = event
self.iconview.set_cursor(self.click_path, None, False)
if iconview.get_cursor()[1] != self.click_path:
self.iconview.set_cursor(self.click_path, None, False)
return 1 # prevent propagation i.e. (de-)selection

# Display right click menu
Expand Down

0 comments on commit 1895e12

Please sign in to comment.