Comments (1)
From what I can tell the mousedown handler is passed to the wrapping <div>
but the viewport element is positioned on top so that when you try to catch the mousedown it's already caught by the viewport and won't bubble up to you anymore.
So if onPaneClick
doesn't do it for you, you could instead try onPointerDown
which should work basically the same for most use-cases.
<ReactFlow {...props} onPointerDown={(event) => alert('pointer down')}>
from xyflow.
Related Issues (20)
- `Controls` are just a white rectangle when using `colorMode="dark"` before rendering correctly HOT 2
- Keycode of delete still working when reactFlow is blur HOT 10
- Accessibility: support aria-pressed attributes HOT 1
- Regression Bug: onNodeMouseEnter and onNodeMouseLeave fire more than once since 11.10.0, but was okay in 11.9.4 HOT 2
- The edge path doesn't work well with the CSS scale. HOT 4
- Multiple parent nodes for one child node. HOT 1
- Include 'deletable' property with EdgeProps and NodeProps HOT 1
- export `useVisibleNodeIds` HOT 1
- useOnSelectionChange on change must be memoized now HOT 1
- 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
- Allow drag selection inside nodes HOT 11
- Configure keys with config object HOT 1
- [SvelteFlow] panOnScroll shift+scroll horizontal does not work after clicking canvas HOT 5
- `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
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.