10000 Fix type doc for scroll event "step" attribute. · matplotlib/matplotlib@248c083 · GitHub
[go: up one dir, main page]

Skip to content

Commit 248c083

Browse files
committed
Fix type doc for scroll event "step" attribute.
`step` is a float e.g. on Qt; this is intentional as "some mice have finer-resolution wheels and send delta values that are less than 120 units" (quoting the Qt docs).
1 parent 8589fed commit 248c083

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/backend_bases.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1403,7 +1403,7 @@ class MouseEvent(LocationEvent):
14031403
last change of keyboard state occurred while the canvas did not have
14041404
focus, this attribute will be wrong.
14051405
1406-
step : int
1406+
step : float
14071407
The number of scroll steps (positive for 'up', negative for 'down').
14081408
This applies only to 'scroll_event' and defaults to 0 otherwise.
14091409

0 commit comments

Comments
 (0)
0