-
Notifications
You must be signed in to change notification settings - Fork 232
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
Touch support #58
Comments
Without getting too fancy, doubling up on the mouse events with equivalent touch events, a-la below, almost gets there, but when dragging with touch the note snaps to a place outside any droppable containers and then touch looses hold of the note position.
EDIT I don't have a fix yet, but I read that the x/y coords are different for touchmove, so onTouchMove becomes:
But more importantly touchmove events stop after the DOM is modified. So once the drag element is removed from the DOM the touchmove event ends and no touchend fires. From: Why touchmove event is not fired after DOM changes?: Ref: https://www.w3.org/TR/touch-events/#the-touchmove-event And...
I think this is what's needed for onTouchMove (I cloned onMouseMove, and changed it to support x/y for touch) is what's described in ZitRo's SO post: |
It seems that touch is not supported, both on mobile screens and on desktop (laptops).
Looking through the scripts, I'm not clear whether you included the code of an existing drag-and-drop framework, or rolled your own. Is it Dragster? (Maybe an older version? I see the word "dragsters" in there, but the latest Dragster supports touch screens).
I was hoping to update the drag/drop code to support touch, but I just thought I ask first so I might find a better starting point.
Thank you!
The text was updated successfully, but these errors were encountered: