+ 5
Why this code work only on pc and not working on smart phones?
7 Respostas
+ 3
Your answer:
https://code.sololearn.com/Wdhhd3yG5Z7l/?ref=app
+ 5
On drag events works mostly on pc, some mobile deviced don't listen to on drag events. Mobile has a touchmove events. You should try it. :)
+ 5
LONGTIE👔 Nope. Only for touch screens.
+ 5
Sleepy Koala so both would be good?
+ 5
Yes. More info about touchmove event:
https://www.w3schools.com/jsref/event_touchmove.asp
+ 4
Most mobile devices do not listen to the drag events that are bound to the DOM. I would recommend using the touchmove event and the events that go along with with it.
+ 2
Oskar Niedbalski Sleepy Koala
now I'm wondering...
Will touchmove work on the computer?