Skip to content

Commit

Permalink
Plots: Don't zoom in/out with double clicks if auto_fit_plotting is e…
Browse files Browse the repository at this point in the history
…nabled
  • Loading branch information
ccordoba12 committed May 2, 2024
1 parent 3549dfc commit 3ea1e40
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spyder/plugins/plots/widgets/figurebrowser.py
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,9 @@ def eventFilter(self, widget, event):
scrollBarV.setValue(scrollBarV.value() + dy)

# Show in full size or restore the previous one
elif event.type() == QEvent.MouseButtonDblClick:
elif event.type() == QEvent.MouseButtonDblClick and not self.get_conf(
"auto_fit_plotting"
):
if self._prev_scalefactor is None:
self._prev_scalefactor = self._scalefactor
# This is necessary so that when calling zoom_in the scale
Expand Down

0 comments on commit 3ea1e40

Please sign in to comment.