I need to detect scroll position and if person not on the bottom of the scroll view - disable autoscroll. Checked how scrollBottom() calculating position and pulled it to my code:
var topPos = this.content.getScrollTop()
var bottomPos = this.content._scrollEle.scrollHeight-this.content._scrollEle.clientHeight;
....
if (topPos >= bottomPos-10) {
setTimeout(() => {
this.content.scrollToBottom();
}, 200);
}
scrollHeight I can get from getContentDimensions() method, but what the right way of getting clientHeight?