function homeSlideScroll() {
var revapi = jQuery('#rev_slider_16_2');
jQuery(document).on('scroll', function() {
if( jQuery(this).scrollTop() >= jQuery('.triangle-slider').position().top + 200){
jQuery(window).one('wheel', function(event){
if(event.originalEvent.deltaY < 0){
console.log('up');
}
else {
console.log('down');
revapi.revnext(); // going to the next slide
// I need to call this once stop the scrolling while I go to the next slide
// then continue to scroll as usual
}
});
}
});
}
在其他地方,我向下滚动,我正在调用函数revapi.revnext();
转到下一张幻灯片,我想在转到下一张幻灯片的同时暂停滚动,然后能够再次滚动而不转到下一张幻灯片。