We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8c174b commit 3503134Copy full SHA for 3503134
lib/matplotlib/backend_bases.py
@@ -3044,8 +3044,8 @@ def release_zoom(self, event):
3044
# ignore singular clicks - 5 pixels is a threshold
3045
# allows the user to "cancel" a zoom action
3046
# by zooming by less than 5 pixels
3047
- if (abs(x - lastx) < 5 and self._zoom_mode!="y") \
3048
- or (abs(y - lasty) < 5 and self._zoom_mode!="x"):
+ if ((abs(x - lastx) < 5 and self._zoom_mode!="y") or
+ (abs(y - lasty) < 5 and self._zoom_mode!="x")):
3049
self._xypress = None
3050
self.release(event)
3051
self.draw()
0 commit comments