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
constgetScrollToBottomValue=(): number=>{if(!childrenRef||!childrenRef.current)return-1;constscrollTop=window.scrollY;// is the pixels hidden in top due to the scroll. With no scroll its value is 0.constscrollHeight=childrenRef.current.scrollHeight;// is the pixels of the whole containerreturnscrollHeight-scrollTop-window.innerHeight;};
The window.scrollY !It is limited to being used only in the window. If a scroll bar appears at a maximum height on its outer layer, it will not work
The text was updated successfully, but these errors were encountered:
your code
The
window.scrollY
!It is limited to being used only in the window. If a scroll bar appears at a maximum height on its outer layer, it will not workThe text was updated successfully, but these errors were encountered: