IonDen / ion.rangeSlider

jQuery only range slider
http://ionden.com/a/plugins/ion.rangeSlider/en.html
MIT License
2.56k stars 508 forks source link

How to set indentation for mobile version if grid text label has large value with suffix? #750

Open adminoid opened 3 years ago

adminoid commented 3 years ago

Please see the screen:

image

I need to make label grid points in a mobile mode less frequently for normal display (to avoid interlaps).

adminoid commented 3 years ago

And one more thing... ionRangeSlider({values: scale(), ...}) where scale - function who returns array.

Thanks in advance!

IonDen commented 3 years ago

Yes, this is a bug on a small screens with too dense grid. Unfortunately all you can do:

  1. Provide alternative values array with less items.
  2. Use normal slider without values array. Use step instead and then you will be able to use grid_num param.
adminoid commented 3 years ago

Thank you very much! And another way - for small screen make grid: false, and in other cases grid: true,. But running ionRangeSlider constructor many times can be a load on the browser if screen width changes dynamically.