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
Is there some way to configure this to only detect when the element is above or below the viewport? I don't care if it went off the page sideways and only want to check if it scrolled off the top.
I was able to achieve the effect by setting viewportTolerance.left and viewportTolerance.right to a really large, arbitrary number, but a way to disable the left-right check altogether would be even better since I figure there are some computations that could then be avoided.
The text was updated successfully, but these errors were encountered:
Could you just use Infinity as the value? I suspect doing an integer comparison is actually faster than having two different code paths from treating it as a separate case.
Is there some way to configure this to only detect when the element is above or below the viewport? I don't care if it went off the page sideways and only want to check if it scrolled off the top.
I was able to achieve the effect by setting
viewportTolerance.left
andviewportTolerance.right
to a really large, arbitrary number, but a way to disable the left-right check altogether would be even better since I figure there are some computations that could then be avoided.The text was updated successfully, but these errors were encountered: