Skip to content

Commit

Permalink
Remove unsued event filtering for position widget in palette
Browse files Browse the repository at this point in the history
  • Loading branch information
aranega committed Dec 19, 2024
1 parent 5c0bab0 commit e9ad2b7
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/widget/position_widget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1558,20 +1558,7 @@ class DimensionTool<Viewer extends object> extends Tool<Viewer> {
).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<WheelEvent>(
plot.element,
Expand Down

0 comments on commit e9ad2b7

Please sign in to comment.