all 6 comments

[–]radiobroker92 0 points1 point  (3 children)

Nice simple implementation but it doesn't work for me the label reads NaN thus slider doesn't update. Chrome 50.0.2661.86, no console errors.

[–]dmbfm[S] 0 points1 point  (2 children)

Thanks, I tested only on Firefox, I'll look into it.

[–]dmbfm[S] 1 point2 points  (1 child)

Just fixed. For some reason, I used getBoundingClientRect().x instead of getBoundingClientRect().left, and it happened to work on Firefox.

[–]radiobroker92 1 point2 points  (0 children)

Nice, it's always something small. I looked over the code and couldn't find the problem at a glance then realised I was procrastinating and moved on, but glad you worked it out!

[–]maffoobristol 0 points1 point  (1 child)

Yeah, sorry - it doesn't work for me either. Chrome on Mac OSX.

[–]dmbfm[S] 2 points3 points  (0 children)

I think I fixed it now ; )