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.
2 parents 1dea2df + 3a4d099 commit bc44f3eCopy full SHA for bc44f3e
lib/matplotlib/widgets.py
@@ -3971,11 +3971,17 @@ def onmove(self, event):
3971
# needs to process the move callback even if there is no button press.
3972
# _SelectorWidget.onmove include logic to ignore move event if
3973
# _eventpress is None.
3974
- if not self.ignore(event):
+ if self.ignore(event):
3975
+ # Hide the cursor when interactive zoom/pan is active
3976
+ if not self.canvas.widgetlock.available(self) and self._xys:
3977
+ self._xys[-1] = (np.nan, np.nan)
3978
+ self._draw_polygon()
3979
+ return False
3980
+
3981
+ else:
3982
event = self._clean_event(event)
3983
self._onmove(event)
3984
return True
- return False
3985
3986
def _onmove(self, event):
3987
"""Cursor move event handler."""
0 commit comments