Okay! So after more digging we find: jScrollPane
doesn't actually scroll the content -- it emulates scrolling but continuously resetting the left
value of whatever it's applied to. So, if you need the value of scrollLeft()
, you can get it with jScrollPane
's getContentPositionX()
function.
Note that when you do use this function, one must first call .data('jsp')
, like such:
var scrollLeft = $('#div-id').data('jsp').getContentPositionX();
Also note that this works the same for scrollTop()
and getContentPositionY()
.
scrollLeft()
never updated because we were never really scrolling.