You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a slider is position:fixed, clicking on the range bar will not animate the drag-handle to the click-point. The code needs updated to correctly calculate the click position when fixed positioning is used.
The text was updated successfully, but these errors were encountered:
Any idea on how to fix this? I'm using the slider inside a Twitter Bootstrap modal and although dragging the handle works, clicking on the range bar doesn't.
Can you please merge @padraicm's code in in? At the moment you have a broken implementation, you need to remove this line - https://github.com/freqdec/fd-slider/blob/master/js/fd-slider.js#L785
Otherwise you are stepping up 2 levels at a time (once inside the loop, then once inside the condition).
If you want to keep the obj = obj.offsetParent in the loop, just check for while(obj) instead of doing the assignment. e.g
If a slider is position:fixed, clicking on the range bar will not animate the drag-handle to the click-point. The code needs updated to correctly calculate the click position when fixed positioning is used.
The text was updated successfully, but these errors were encountered: