I'm stuck with mouse function | Sololearn: Learn to code for FREE!

+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?

9/12/2017 5:25:02 PM

Chintalacheruvu Sravanth Kumar

3 Answers

New Answer

+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

+1

replace mousemove with touchmove

0

mobile don't have mouse by default.. you gonna need PC or additional mouse device if mobile..