Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix a zoom fit by double-click issue #670

Merged
merged 1 commit into from
May 15, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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