From e9ad2b72f3ab712396e1bca4a54df30f74b127bb Mon Sep 17 00:00:00 2001 From: aranega Date: Thu, 19 Dec 2024 10:12:08 -0600 Subject: [PATCH] Remove unsued event filtering for position widget in palette --- src/widget/position_widget.ts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/widget/position_widget.ts b/src/widget/position_widget.ts index f75e4433d2..7556c14310 100644 --- a/src/widget/position_widget.ts +++ b/src/widget/position_widget.ts @@ -1558,20 +1558,7 @@ class DimensionTool extends Tool { ).element, ); - const shouldIgnoreEvent = (event: Event) => { - const target = event.target; - if ( - target instanceof Element && - target.matches(".neuroglancer-position-dimension-playback *") - ) { - return true; - } - return false; - }; - const mouseHandler = this.registerDisposer( - new MouseEventBinder(plot.element, inputEventMap), - ); - mouseHandler.shouldIgnore = shouldIgnoreEvent; + this.registerDisposer(new MouseEventBinder(plot.element, inputEventMap)); registerActionListener( plot.element,