silx-kit / h5web

React components for data visualization and exploration
https://h5web.panosc.eu/
MIT License
165 stars 17 forks source link

SelectionTool interaction at mouse down #1624

Closed vallsv closed 2 months ago

vallsv commented 2 months ago

Is your feature request related to a problem?

Hi,

I try to use that component to display something at the mouse down.

(and then fine tune it's location).

But the callback function is not triggered at the mouse down.

It is actually only called at the first move after the mouse down.

Requested solution or feature

The callback could be called when the mouse is pressed.

Alternatives you've considered

Use another tool or create my own SelectionTool.

Additional context

I use @h5web/lib": "7.0.2-beta.0