fryn / html5slider

<input type=range> polyfill for Firefox
http://fryn.github.io/html5slider/
180 stars 48 forks source link

control does not start with given value #10

Closed monolied closed 11 years ago

monolied commented 11 years ago

It looks like the slider doesn't start at the position given by "value=". In your live demo, the second slider starts with 30. This could be "the closest it gets to given value 20 with step 30", but it isn't. It also starts with 30 if you give an initial value of 60 or 90.

monolied commented 11 years ago

D'oh. It does start with the given value, but not after a reload in Firefox. You have to close/open the window to get the change.

fryn commented 11 years ago

Interesting. It seems that the shim is not handling the browser's form cache well. Thanks for reporting this. I'll look into it.

fryn commented 11 years ago

Fixed in latest commit. :)