message: fix: update condition of return
diff: @@ -11,8 +11,9 @@ function isInViewPort (el: HTMLElement): boolean {
  }
  const viewPortHeight = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight
  - const top = el.getBoundingClientRect() && el.getBoundingClientRect().top
  - return top <= viewPortHeight
  + const top = el.getBoundingClientRect() && el.getBoundingClientRect().top;
  + const scrollTop = document.documentElement.scrollTop;
  + return top >= scrollTop && top <= viewPortHeight + scrollTop;
  }
  function useInViewport<T extends HTMLElement = HTMLElement>(): [InViewport, MutableRefObject<T>];
  