From 9a0f8e9667f4c6f1db6d41313e518ec4ab790038 Mon Sep 17 00:00:00 2001 From: Ian Thomas Date: Tue, 17 Dec 2024 08:55:32 +0000 Subject: [PATCH] Include event.buttons in mouse events --- src/mpl_widget.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mpl_widget.ts b/src/mpl_widget.ts index 9fc268d7..acd4b58f 100644 --- a/src/mpl_widget.ts +++ b/src/mpl_widget.ts @@ -758,6 +758,7 @@ export class MPLCanvasView extends DOMWidgetView { x: x, y: y, button: event.button, + buttons: event.buttons, step: event.step, modifiers: utils.getModifiers(event), guiEvent: utils.get_simple_keys(event),