Comments (8)
You might wanna read this section of the docs.
TL;DR: add the nodrag
class name to elements that should not initiate a drag action inside a node.
from xyflow.
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).
So the problem is using the RF built-in selection box while having the mouse on a node, is that correct?
from xyflow.
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 ^^
from xyflow.
But that only prevents dragging the node, and you still cannot start drag selection from inside the node.
from xyflow.
Well, add some css to the element user-select: text;
or all
and you're good.
from xyflow.
I did and it still doesn't work.
Screen.Recording.2024-05-17.at.13.21.17.mov
from xyflow.
Mh... not quite sure what the video is supposed to tell me? What exactly are you trying to achieve with "dragging" here?
from xyflow.
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.
from xyflow.
Related Issues (20)
- export `useVisibleNodeIds` HOT 1
- useOnSelectionChange on change must be memoized now
- Node Drag behaviour affected by chrome developer console - d3.Force layout HOT 2
- [React Flow]: Handle: No node id found. Make sure to only use a Handle inside a custom Node.
- [React Flow]: Handle: No node id found. Make sure to only use a Handle inside a custom Node. HOT 1
- Zoom In, Zoom Out, fitview, and toggle interactivity HOT 4
- Mini Map preview disappeared in 12.0.0-next.18 HOT 1
- Revert to window level event listeners
- [SvelteFlow] panOnScroll shift+scroll horizontal does not work after clicking canvas HOT 4
- `Edge` should accept a generic `type` argument like `Node` HOT 2
- Node Position Changes Cause All Nodes To Disappear HOT 3
- Provide helper to create an edge from edge params or `Connection` HOT 9
- Large Data React-Window Virtualization HOT 7
- prevent outcoming edge from target handle HOT 3
- Edge marker is not dynamically updated HOT 9
- accept array of classes in noPanClassName HOT 5
- snap guidelines HOT 2
- Extra Objects needed HOT 2
- Node position not matching the nodes list and rendered node HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from xyflow.