IonDen / ion.rangeSlider

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

How to fix unequal interval? #605

Open angular-dev1 opened 5 years ago

angular-dev1 commented 5 years ago

I'm using ion range slider for generating a timeline with date, time including seconds. It's a single type slider. I'm using grid_num to determine the interval and it is set for 6 minutes but it's off by a second (please refer to image below). It has 6 minutes interval for 30 minutes and then it's like 6 minutes and one second interval. How can I generate a timeline with equal interval including seconds like 7:00:00Pm.. 7:06:00PM, 7:12:00PM, 7:18:00PM etc

timeline-inequal-interval

IonDen commented 5 years ago

Hi, could you please adjust this demo to show your problem? https://jsfiddle.net/IonDen/rmLj8dua/

angular-dev1 commented 5 years ago

Hello,

Thank you for creating the JSFiddle. I am able to replicate the issue. Please look at the image below. The interval for seconds is 19s. The time within the red rectangle is one second off.

Updated JSFiddle: https://jsfiddle.net/t4oz2dyw/5/

unequal-interval-replicate

angular-dev1 commented 5 years ago

Any update on this issue?