views:

891

answers:

3

In the iPhone or Android, if you have a JQuery Slider, it doesn't quite work (touchscreen will move the screen instead of drag the slider.)

+1  A: 

You may need to write this from scratch. Luckily, @ppk has coded up an example of drag and drop for iPhone.

Andrew Hedges
+1  A: 

Listen for touch events and move the slider accordingly. These events also work on Android as it also uses WebKit.

Eli Grey
A: 

I found sample code online which converts touch events to mouse events. I tested this with jquery-ui's slider and it worked nicely!

Link to source

Farid