Scroll
ght, clientHeight } = el; const isAtBottom = Math.abs(scrollHeight - clientHeight - scrollTop) < tolerance; const isAtTop=scrollTop <=0; if (e.deltaY> 0) { if (isAtBottom) { if (currentSlideIndex < totalSlides - 1) triggerPageChange(currentSlideIndex + 1, false); } } else { if (isAtTop) { if (currentSlideIndex> 0) triggerPageChange(currentSlideIndex - 1, true); } } }, { passive: false });