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

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

    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

提交回复
热议问题