+ 3
Drag&Drop API
The drag and drop slide needs a ' try it yourself ', don't you think??
3 odpowiedzi
+ 10
you can do it in your own code playground. and share with us the result, it will be better @zakaria
+ 6
In one hand, Sololearn is mostly an app', rather than a website, and learners are mainly using the app than the website to follow courses and use code playground...
In the other hand, Html5 drag'n'drop API only works with mouse: touch devices need to implement some polyfill to handle drag'n'drop, and be aware that doing this will have some fail: drag'n'drop gesture in an app (even a browser) could be limited by the fact that others gesture (or even drag'n'drop one) are often implemented to handle app itself UI: see how you can swipe from tab (including preview tab) in the code playground: using swipe and/or drag'n'drop is quite delicate, as your gesture will be missunterpreted...
But despite these limitations (explaining maybe why there's no "try yourself" for this topic), you could make it more or less working:
https://code.sololearn.com/Wrhkbc5ngt7y/?ref=app
+ 2
Thank you Visph for the clarification and the example ;)