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
functionhandleScroll(){if(pastHalfScrollWidth()){backToHalfScrollWidth()}}functionpastHalfScrollWidth(){returnscrollContainer.scrollLeft>=scrollContainer.scrollWidth/2}functionbackToHalfScrollWidth(){scrollContainer.scrollLeft-=scrollContainer.scrollWidth/2;}onMount(()=>{// Initialize Lenislenis=newLenis({infinite: true,syncTouch: true});// Define the requestAnimationFrame functionfunctiononRaf(time){lenis.raf(time);requestAnimationFrame(onRaf);}// Start the animation frame looprequestAnimationFrame(onRaf);});onDestroy(()=>{// Cleanup if necessary (e.g., stop the animation frame)lenis=null;// or any other cleanup logic if required});console.log('Scroll container:',scrollContainer);// console.log('Active filter:', $activeFilter);// console.log('Techniques:', techniques);console.log('Lenis:',lenis);
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: