Using the offsetParent option and setting padding the parent makes the right drag limit wrong (it looks like its padding-left + padding-right).
Reproducing the bug on the demo is easy, just open the dev tools and set the padding to the container with scrollbars.
Setting only the left padding 'works' (in this case, the right padding must not be set and is the same as left...).
Maybe I missed something ?
Using the offsetParent option and setting padding the parent makes the right drag limit wrong (it looks like its padding-left + padding-right).
Reproducing the bug on the demo is easy, just open the dev tools and set the padding to the container with scrollbars.
Setting only the left padding 'works' (in this case, the right padding must not be set and is the same as left...).
Maybe I missed something ?