Skip to content

Commit a4d82fe

Browse files
authored
Merge pull request #14188 from timhoffm/mouseevent-dblclick
Clarify scope of MouseEvent attributes
2 parents 8bacee9 + bc18731 commit a4d82fe

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/matplotlib/backend_bases.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1409,9 +1409,12 @@ class MouseEvent(LocationEvent):
14091409
14101410
step : scalar
14111411
The number of scroll steps (positive for 'up', negative for 'down').
1412+
This applies only to 'scroll_event' and defaults to 0 otherwise.
14121413
14131414
dblclick : bool
1414-
Whether the event is a double-click.
1415+
Whether the event is a double-click. This applies only to
1416+
'button_press_event' and is False otherwise. In particular, it's
1417+
not used in 'button_release_event'.
14151418
14161419
Examples
14171420
--------

0 commit comments

Comments
 (0)