How do I make a JQuery Slider-like feature on iPhone/Android web app?

后端 未结 6 1930
有刺的猬
有刺的猬 2021-02-03 10:39

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.)

6条回答
  •  长情又很酷
    2021-02-03 11:17

    I used this to wire up http://code.google.com/p/jquery-ui-for-ipad-and-iphone/ the slider. Works like a charm, just be sure to replace the code that works against specific dom elements. Then add $('#sliderdiv').addTouch (). Works on IPhone, but doesn't work for Android. According to quirksmode touch events don't work on Android.

提交回复
热议问题