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
So in any given moment the rect.bottom <= containmentRect.bottom && rect.top >= containmentRect.top will be true.
The solution is to change state to be some kind of enum (NONE, TOP, BOTTOM, COMPLETE), so we'll able to trigger onChange(true) when TOP && BOTTOM exists.
The text was updated successfully, but these errors were encountered:
When I have an element that is bigger that the viewport the
onChange
will never trigger withtrue
.That's because we're doing the following check:
So in any given moment the
rect.bottom <= containmentRect.bottom && rect.top >= containmentRect.top
will be true.The solution is to change state to be some kind of enum (
NONE
,TOP
,BOTTOM
,COMPLETE
), so we'll able to triggeronChange(true)
whenTOP && BOTTOM
exists.The text was updated successfully, but these errors were encountered: