Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit80b0af1

Browse files
committed
Fix redundant check and outdated comment
1 parent407f4b7 commit80b0af1

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
ifinsideorself.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
elifself._hover:
@@ -1533,7 +1530,7 @@ def on_motion(self, evt):
15331530
self._hover=False
15341531
self.canvas.set_cursor(Cursors.POINTER)
15351532

1536-
ifself._check_still_parented()andself.got_artist:
1533+
ifself.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)

[8]ページ先頭

©2009-2025 Movatter.jp