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
Copy file name to clipboardExpand all lines: src/script/components/utils/InViewport.tsx
+18-4Lines changed: 18 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,7 @@ import {viewportObserver} from 'Util/DOM/viewportObserver';
24
24
25
25
interfaceInViewportParams{
26
26
onVisible: ()=>void;
27
+
onVisibilityLost?: ()=>void;
27
28
requireFullyInView?: boolean;
28
29
allowBiggerThanViewport?: boolean;
29
30
/** Will check if the element is overlayed by something else. Can be used to be sure the user could actually see the element. Should not be used to do lazy loading as the overlayObserver has quite a long debounce time */
0 commit comments