We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f3359a3 commit f7b5689Copy full SHA for f7b5689
lib/matplotlib/widgets.py
@@ -4000,11 +4000,18 @@ def onmove(self, event):
4000
# needs to process the move callback even if there is no button press.
4001
# _SelectorWidget.onmove include logic to ignore move event if
4002
# _eventpress is None.
4003
- if not self.ignore(event):
+
4004
+ # Hide the cursor when interactive zoom/pan is active
4005
+ if self.ignore(event):
4006
+ if not self.canvas.widgetlock.available(self) and self._xys:
4007
+ self._xys[-1] = (np.nan, np.nan)
4008
+ self._draw_polygon()
4009
+ return False
4010
4011
+ else:
4012
event = self._clean_event(event)
4013
self._onmove(event)
4014
return True
- return False
4015
4016
def _onmove(self, event):
4017
"""Cursor move event handler."""
0 commit comments