-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Same element with both Draggable and Click / Touch #250
Comments
Try dev-branch |
@RubaXa Thanks for getting back. For now, I have disabled dragging on touchscreen devices using the code:
|
Good afternoon, This is also happening to me. I've got a div which should be dragged or clicked. However, the drag event is always fired but the click event is never fired. A fix would be so great ;) Nice job! |
@anandpdoshi Here is an example of work dev-branch, there is no error, the problem maybe due to use min-version (from |
Sorry, I forgot to mention that the main branch works fine in a web page, or in a Firefox OS simulator, but when I load the code in my real device, all touches are detected as drag, and no touch is detected as click. ;) |
Okay. I will test this out on Monday. Thanks for getting back :) Sent from my phone
|
I'm having the same problem with Bootstrap Tabs where touch on a Tab doesn't select it. This happens on my Samsung Tablet S and in the Chrome Dev Tools with Device Mode set to a Tablet etc. The current download is the same as the Dev branch except for the Version number. You also get the ghost image on I've been doing a bit more research and found that some libs like slip https://github.com/pornel/slip don't use HTML5 drag & drop code at all, which maybe worth considering for Sortable. Related articles & code include: http://code.makery.ch/blog/drag-and-drop-without-html5/ https://github.com/rkusa/touch-dnd HTH |
Any solution for this problem? |
Using the sortable dev branch's Sortable.js also doesn't work. |
For anyone interested I've stopped using Sortable.js and am using touch-dnd.js http://ma.rkusa.st/touch-dnd/ It works very nicely on both touch and non-touch devices and doesn't use HTML5 drag & drop. I've helped track down and resolve a few issues and the author has been very responsive. |
I found the solution. The problem it's that library use even |
This bug is fixed by #441 However, it is still a pull request and should be merged. |
For reference, with newer versions click event on touch devices wasn't working again but I had to set fallbackTolerance on SorgableJS to make it work. |
I have a set of icons which can be dragged for sorting or clicked for going into the link. This works on desktop browsers, but on touch devices, only dragging works. Touch event does not go through.
This is the error that occurs on double tap:
Here's what the UI looks like:
You can try out the live demo here: http://staging5.erpnext.com/
The text was updated successfully, but these errors were encountered: