You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Only execute the code above when the stage is being dragged
Add settings that determine whether or not this code should execute
Both
The issue I have with the solution 1. alone, is that in some cases there might be other interactions (like nodes drag-and-dropping) that require this code to be executed. Any thought on that @Yomguithereal?
The text was updated successfully, but these errors were encountered:
By the way, there is also another behaviour that could be improved: The "mousemove" event is only dispatched on sigma's mouse DOM container, so when the user grabs the graph then moves the mouse out of the graph, it stops dragging.
Details:
- Binds mouse events to document instead of container
- Computes mouse events positions using container offset and page
coordinates instead or directly offset coordinates
- Only prevent defaults on handleMouseMove when the stage is actually
being dragged
I have an application with a sigma component and a react-sortable-hoc component next to each other.
I cannot drag elements from the react-sortable-hoc component over the sigma component, and this feels like a bug.
The reason is the following code:
sigma.js/src/core/captors/mouse.ts
Lines 239 to 244 in 9d4e33c
I can see two different solutions:
The issue I have with the solution 1. alone, is that in some cases there might be other interactions (like nodes drag-and-dropping) that require this code to be executed. Any thought on that @Yomguithereal?
The text was updated successfully, but these errors were encountered: