website with touch mimicking mouse
website with touch mimicking mouse
Out of context: Reply #2
- Started
- Last post
- 3 Responses
- PonyBoy0
you can just use simple Javascript 'touch events' (event listeners) and 'touch objects' (attributes that provide x, y coordinates etc etc)... all you need to do is write a couple of functions where the event trigger provides the value of an object...
this may shed some light:
http://www.javascriptkit.com/jav…
https://www.w3.org/TR/touch-even…- yep thanks - I can do it with jQuery Touch as mentioned in my post - just wondered if there was a less convoluted method?fadein11
- demos don't work with mouse - need to work both with mouse and touch.fadein11
- can't assign mouse events too? I figured JS is the 'thinnest' route (just accessing built-in events- wasn't sure if you were avoiding loading jquery altogether)PonyBoy