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

后端 未结 6 2045
有刺的猬
有刺的猬 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:07

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

提交回复
热议问题