You were calling obj = obj.offsetParent twice each iteration, which means you skip one of the parents, and will throw an error if you are only one element from the document.
This breaks "click to jump slider" when the slider is inside an absolutely positioned element.
This addresses issue 16.
You were calling
obj = obj.offsetParent
twice each iteration, which means you skip one of the parents, and will throw an error if you are only one element from the document. This breaks "click to jump slider" when the slider is inside an absolutely positioned element. This addresses issue 16.