Compare commits

..

1 commit

Author SHA1 Message Date
Dariusz Niemczyk 73140f45b9
fix: oopsie, accidentally commited debug code
Some checks failed
/ deploy (push) Failing after 1s
2025-02-12 23:38:50 +01:00

View file

@ -95,8 +95,6 @@ function Video({ sourceBase, hidden }: {
const videoRef = useRef<HTMLVideoElement>(null);
useEffect(() => {
if (!videoRef.current || hidden) return;
console.log('effect running running and running running')
const handleScroll = () => {
if (!videoRef.current || hidden) return;
@ -108,7 +106,7 @@ function Video({ sourceBase, hidden }: {
};
const throttledHandleScroll = () => {
// requestAnimationFrame(handleScroll);
requestAnimationFrame(handleScroll);
};
window.addEventListener("scroll", throttledHandleScroll);