+ 9

I'm stuck with mouse function

wrapper.addEventListener('mousemove', function(e) ....... I'm coding in mobile ......is there any function regarding touch screen thing .....to replace this?

12th Sep 2017, 5:25 PM
CSK
3 odpowiedzi
+ 5
here is an example for mouse actions in dome https://code.sololearn.com/Wk8Wgk17wM98/?ref=app but tthere is another way handle mouse actions like when you add a listener. jquery handles it with touchstart , touchmove and touchend
13th Sep 2017, 2:06 PM
Melih Melik Sonmez
Melih Melik Sonmez - avatar
+ 1
replace mousemove with touchmove
12th Sep 2017, 5:28 PM
Kartikey Sahu
Kartikey Sahu - avatar
0
mobile don't have mouse by default.. you gonna need PC or additional mouse device if mobile..
12th Sep 2017, 5:35 PM
Mikhael Anthony
Mikhael Anthony - avatar