retejs / angular-plugin

https://retejs.org
MIT License
55 stars 36 forks source link

doubleClick on node #97

Closed skormel closed 7 months ago

skormel commented 8 months ago

Hi,

I want to bind a doubleClick event on a node so I can open a modal dialog. I need this behaviour because I don't want visible controls on node but on a dialog.

How can I make this feature?

Best Regards

skormel commented 8 months ago

Can you provide an example? @Ni55aN

Ni55aN commented 8 months ago

nodes Drag feature prevents click/dblclick events. It can be unlocked by stopPropagation https://retejs.org/docs/guides/renderers/react/#controls

Just put container with onPointerDown + stopPropagation and onDoubleClick into the custom component (if you are using React)

skormel commented 7 months ago

We are using Angular.

Thanks for the information, it works great.

nodes Drag feature prevents click/dblclick events. It can be unlocked by stopPropagation https://retejs.org/docs/guides/renderers/react/#controls

Just put container with onPointerDown + stopPropagation and onDoubleClick into the custom component (if you are using React)

We are using angular