jQuery UI sliders on touch devices

前端 未结 4 2007
慢半拍i
慢半拍i 2020-12-07 08:11

I\'m developing a website using jQuery UI, and there are several elements on my site that appear to be incompatible when viewed on touchscreen devices; they don\'t cause any

4条回答
  •  孤街浪徒
    2020-12-07 09:05

    I had the same problem. I developed an elaborate slider UI building on jQuery UI's slider only to realize it doesn't work at all on mobile. I tried the suggestions listed here but since I have a custom solution that's only based on jQuery UI Slider, it did not work.

    Just use noUiSlider.

    It does all the elaborate features (and much more) as the one I built on top of jQuery UI slider. It works beautifully on mobile devices and is easy to style too.

提交回复
热议问题