+ 3

Draggable true does not work for me

maybe because i'm on a tablet?

5th Aug 2017, 2:27 PM
Rcknmrty
Rcknmrty - avatar
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
6th Aug 2017, 9:45 AM
visph
visph - avatar
+ 3
it need code in JavaScript i know this from the course here
5th Aug 2017, 2:32 PM
Kyrillos Akram
Kyrillos Akram - avatar
+ 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.
5th Aug 2017, 3:22 PM
Rcknmrty
Rcknmrty - avatar
+ 2
thanks a lot! i hope it was just just a copy and paste and not too much work.
6th Aug 2017, 10:45 AM
Rcknmrty
Rcknmrty - avatar
+ 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
8th Aug 2017, 3:32 PM
Kyrillos Akram
Kyrillos Akram - avatar
+ 1
i think that we should dive JS to understand this point
8th Aug 2017, 3:37 PM
Kyrillos Akram
Kyrillos Akram - avatar