-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow drag selection inside nodes #4280
Comments
You might wanna read this section of the docs. TL;DR: add the |
But that only prevents dragging the node, and you still cannot start drag selection from inside the node. |
Well, add some css to the element |
I did and it still doesn't work. Screen.Recording.2024-05-17.at.13.21.17.mov |
Mh... not quite sure what the video is supposed to tell me? What exactly are you trying to achieve with "dragging" here? |
In the video I start dragging outside of the box it triggers drag selection but when I do it from inside the box nothing happens. |
Aha! Well that's quite different from the original issue I assumed you had (thought you were trying to use some input text selection or whatever inside of a node, which the above class name + css would've allowed). |
If that's the case, I don't think that works out of the box sadly - so your initial request might make sense although that's for the maintainers to decide and not me 😄 At least we were able to clarify what the exact issue here is ^^ |
That's a good question @hiepnguyen3001. Unfortunately this is only possible with a workaround. You could listen to the selection key and set |
I don't think so @moklick. Even when I set |
Damn.. The only way I see then is to add a class or set a style directly that prevents all pointer events. |
Please describe the feature that you want to propose
Currently, it is not possible to start a drag selection box inside a node. May I suggest a new property like
enableDragSelect
?I'm aware this behavior means that you cannot drag the node itself anymore. But in that case, we can make it so that drag selection is only enabled inside node when it has a specified
dragHandle
. Then both dragging node by its drag handle and drag selection inside node is possible.The text was updated successfully, but these errors were encountered: