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
I am implementing the ability to stop scrolling when a particular div reaches the top of the viewable area. The stopScroll function is perfect for this. However, I'm finding it would be nice to have a variable that indicates that scrollToBottom is currently executing so if my component re-renders while it's scrolling to the bottom, it doesn't see that my div is outside the scrollable area and stop the scroll. Essentially being able to do:
if(!scrollingToBottom){
//do logic for stopping scroll
}
This would also be beneficial for skipping certain actions if the component renders and the initial scroll is executing.
The text was updated successfully, but these errors were encountered:
I am implementing the ability to stop scrolling when a particular div reaches the top of the viewable area. The stopScroll function is perfect for this. However, I'm finding it would be nice to have a variable that indicates that scrollToBottom is currently executing so if my component re-renders while it's scrolling to the bottom, it doesn't see that my div is outside the scrollable area and stop the scroll. Essentially being able to do:
This would also be beneficial for skipping certain actions if the component renders and the initial scroll is executing.
The text was updated successfully, but these errors were encountered: