You can calculate the maximum value of element.scrollLeft with:
var maxScrollLeft = element.scrollWidth - element.clientWidth;
Note that there could be some browser specific quirks that I’m not aware of.
You can calculate the maximum value of element.scrollLeft with:
var maxScrollLeft = element.scrollWidth - element.clientWidth;
Note that there could be some browser specific quirks that I’m not aware of.