Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 80b0af1

Browse files
committed
Fix redundant check and outdated comment
1 parent 407f4b7 commit 80b0af1

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/matplotlib/offsetbox.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1522,9 +1522,6 @@ def on_motion(self, evt):
15221522
# If the mouse is moving quickly while dragging, it may leave the artist,
15231523
# but should still use the move cursor.
15241524
if inside or self.got_artist:
1525-
# Ideally, this should use an open hand cursor on hover, and a closed
1526-
# hand when dragging, but those cursors are not natively provided by
1527-
# all platforms.
15281525
self._hover = True
15291526
self.canvas.set_cursor(Cursors.MOVE)
15301527
elif self._hover:
@@ -1533,7 +1530,7 @@ def on_motion(self, evt):
15331530
self._hover = False
15341531
self.canvas.set_cursor(Cursors.POINTER)
15351532

1536-
if self._check_still_parented() and self.got_artist:
1533+
if self.got_artist:
15371534
dx = evt.x - self.mouse_x
15381535
dy = evt.y - self.mouse_y
15391536
self.update_offset(dx, dy)

0 commit comments

Comments
 (0)