Compare commits

..

1 commit

Author SHA1 Message Date
Dariusz Niemczyk fc46f7a4cd
fix: videos naming scheme
Some checks failed
/ deploy (push) Failing after 2s
2025-02-12 23:34:23 +01:00

View file

@ -95,6 +95,8 @@ 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;
@ -106,7 +108,7 @@ function Video({ sourceBase, hidden }: {
};
const throttledHandleScroll = () => {
requestAnimationFrame(handleScroll);
// requestAnimationFrame(handleScroll);
};
window.addEventListener("scroll", throttledHandleScroll);