From bc18731470b3b7875ad15ba261d5d3d4200de486 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Sat, 11 May 2019 18:21:07 +0200 Subject: [PATCH] Clarify scope of MouseEvent attributes --- lib/matplotlib/backend_bases.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/matplotlib/backend_bases.py b/lib/matplotlib/backend_bases.py index bff765e2b591..afaf57fed9cc 100644 --- a/lib/matplotlib/backend_bases.py +++ b/lib/matplotlib/backend_bases.py @@ -1409,9 +1409,12 @@ class MouseEvent(LocationEvent): step : scalar The number of scroll steps (positive for 'up', negative for 'down'). + This applies only to 'scroll_event' and defaults to 0 otherwise. dblclick : bool - Whether the event is a double-click. + Whether the event is a double-click. This applies only to + 'button_press_event' and is False otherwise. In particular, it's + not used in 'button_release_event'. Examples --------