You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var isAtBottom = (startY >= curY && el.scrollHeight - el.scrollTop === height);
In this code, in some case, el.scrollHeight - el.scrollTop !== height, such as 900 - 450 !== 449.
So the height should be var height = Math.round(parseFloat(style.getPropertyValue('height')));
The text was updated successfully, but these errors were encountered:
@wztscau Although your solution didn't fix this for me, it lead me down the path to figuring this issue out. For any others who stumble down this path, I solved it by changing this check:
The problem seems to be related to the fact that scrollHeight - scrollTop does not always equal height when scrolled to the bottom. It's often a pixel off.
var isAtBottom = (startY >= curY && el.scrollHeight - el.scrollTop === height);
In this code, in some case, el.scrollHeight - el.scrollTop !== height, such as 900 - 450 !== 449.
So the height should be
var height = Math.round(parseFloat(style.getPropertyValue('height')));
The text was updated successfully, but these errors were encountered: