Skip to content

Commit 0622c25

Browse files
authored
Add comment to new method
1 parent c77e9d5 commit 0622c25

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/matplotlib/offsetbox.py

+1
Original file line numberDiff line numberDiff line change
@@ -1502,6 +1502,7 @@ def __init__(self, ref_artist, use_blit=False):
15021502

15031503
@staticmethod
15041504
def _picker(artist, mouseevent):
1505+
# A custom picker to prevent dragging on mouse scroll events
15051506
return (artist.contains(mouseevent) and mouseevent.name != "scroll_event"), {}
15061507

15071508
# A property, not an attribute, to maintain picklability.

0 commit comments

Comments
 (0)