phphe / vue-draggable-nested-tree

Vue2 draggable tree component
https://hetree.phphe.com/
MIT License
345 stars 62 forks source link

Delay when dragging across collapsed tree #70

Open patrick0888 opened 5 years ago

patrick0888 commented 5 years ago

Is it possible to add a little delay when dragging across collapsed elements to keep them collapsed?

phphe commented 5 years ago

there are several actions at https://github.com/phphe/vue-draggable-nested-tree/blob/master/src/components/autoMoveDragPlaceHolder.js#L11 In this case, you can overwrite it with setTimeout if the target is collapsed and has children.

kaipaysen commented 5 years ago

I'd love that feature as well. @patrick0888 did you manage to get this feature working? would you mind sharing your results?