-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Drag node on touch does not work (example mouse-manipulations) #1292
Comments
This is not surprising since the drag example relies on events emitted by the mouse captor only. Should those events be replicated by the touch captor also? |
That would sound coherent :) |
FYI, I made an example on the react lib for the drag'n'drop, and thanks to you I added the event for the touch : https://sim51.github.io/react-sigma/docs/example/drag_n_drop |
@sim51 I can't get touchdrag to work on your example page on my browser when switching in developer mode to fake phone mode, any idea why? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Oh stop it you stalebot |
@Yomguithereal Tips Of the Day : when you want to stop the stalebot, just add the label 'pinned'. The bot will ignore them |
@boogheta sorry I missed your comment, I will check it. |
@Yomguithereal OK, so right now, here is how it works in JavaScript, for classic DOM events:
My question is: Should the |
So, after investigations, here's what's happening:
I don't know yet how to clean that issue. I'll have to come at it later. |
After re-discovering these fake events (mentionned in #1292), I tested them as much as I could, and I'm pretty sure they are never actually caught from the mouse captor. Also, this commit always uses `this.getNodeAtPosition(e)` to find what node is under the cursor, and never uses `hoveredNode`.
No description provided.
The text was updated successfully, but these errors were encountered: