rete icon indicating copy to clipboard operation
rete copied to clipboard

Prevent Drag based on class name

Open Dus1988 opened this issue 4 years ago • 1 comments

Using Rete in Angular, I have some nodes that have pseudo sub-nodes for ordering. I want those sub nodes to use a standard drag and drop library for ordering.

I have been able to properly stopPropagation so that trying to drag the sub node no longer drags the "group node", but unfortunately this also stops the pointerDown event from propagating to the drag and drop library.

It would be great if in the drag object, the down function had the ability to check the config for an array of classes to ignore. I can fork this if needed, but Id like to keep using npm for this package instead of bringing into the app manually.

Dus1988 avatar Sep 13 '21 21:09 Dus1988

Can you provide a sample?

creadicted avatar Oct 15 '21 07:10 creadicted

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 10 days.

rete-js[bot] avatar Jul 13 '23 10:07 rete-js[bot]