You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I searched in docs and examples but it seems that the API offers no way to access mouse events happening in the canvas.
I would like to prevent some default click behavior (e.g. focusing on right-clicked residues) and add some custom behaviors.
While I can catch clicks happening on the canvas it is very difficult (or impossible) to know where the click happened (residue or background) and to prevent default behavior.
Is this possible with the current API? Do you plan to add some or any of these functionalities? Alternatively, do you know of any workaround that could help me?
The text was updated successfully, but these errors were encountered:
Hi,
Please refer to 'Custom Events' section here in the wiki docs. You can add listener for Click (Primary), Mouseover and Mouseout events.
Currently there is no provision to prevent / override default mouse event behaviour. I'll add this to our feature request list and check how we can provide this functionality generically using parameters.
As a workaround for now, you could fork the code and override the defaults. Here is a reference
Hi,
The plugin v1.2.0 provides parameters to override mouse click behaviour. For details please refer selectBindings and focusBindings parameters in the plugin documentation
Hi,
I searched in docs and examples but it seems that the API offers no way to access mouse events happening in the canvas.
I would like to prevent some default click behavior (e.g. focusing on right-clicked residues) and add some custom behaviors.
While I can catch clicks happening on the canvas it is very difficult (or impossible) to know where the click happened (residue or background) and to prevent default behavior.
Is this possible with the current API? Do you plan to add some or any of these functionalities? Alternatively, do you know of any workaround that could help me?
The text was updated successfully, but these errors were encountered: