Thanks to visit codestin.com Credit goes to github.com
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 a3aad58 commit 29e7d8dCopy full SHA for 29e7d8d
lib/matplotlib/offsetbox.py
@@ -1486,7 +1486,15 @@ def finalize_offset(self):
1486
def __init__(self, ref_artist, use_blit=False):
1487
self.ref_artist = ref_artist
1488
if not ref_artist.pickable():
1489
- ref_artist.set_picker(True)
+ ref_artist.set_picker(
1490
+ lambda artist, mouseevent: (
1491
+ (
1492
+ artist.contains(mouseevent) and
1493
+ mouseevent.name != "scroll_event"
1494
+ ),
1495
+ {}
1496
+ )
1497
1498
self.got_artist = False
1499
self._use_blit = use_blit and self.canvas.supports_blit
1500
callbacks = self.canvas.callbacks
0 commit comments