+ 3
Draggable true does not work for me
maybe because i'm on a tablet?
6 Answers
+ 5
Unfortunaly, drag and drop JS events API doesn't work natively with touch devices... but there's workaround by using polyfill ;)
Check your little modified code, adding the polyfill (minified and fixed version -- see code output for reference link) and improving your html/js (you've forgot to add the ondrag event on your first draggable <div>, and I've change the JS to register event listeners at running time and externalize css and js in tabs -- lighter html -- Added also a test to avoid same drop target as start drag parent error):
https://code.sololearn.com/Wg2VViGI2KKv/#js
+ 3
it need code in JavaScript
i know this from the course here
+ 2
thanks, but even though, i copied the course script and it doesnt work.
it doesn't even work in browsers when i try web examples.
+ 2
thanks a lot! i hope it was just just a copy and paste and not too much work.
+ 1
I'm sorry for the time but i don't know where error is if it still up mention the big boys here I'm need to know this code well
+ 1
i think that we should dive JS to understand this point