Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simulate swipe with mouse in javascript

I'm trying to make an image rotator that works on mobile devices using swipe for navigation. I'm also trying to make the same rotator to work on PC browsers but to be able to use the mouse drag to simulate swipe. Any good ideeas?

like image 745
gabitzish Avatar asked Oct 25 '11 19:10

gabitzish


1 Answers

I've looked into most of these... I'd recommend looking into

Hammer.Js

From what little I've seen, it has support for both desktop and mobile swiping and I was impressed with the demos.

like image 130
FreePender Avatar answered Sep 22 '22 22:09

FreePender