javascript - Revolution Slider - Advance once per mouse scroll -
edit: revolution slider updated version 5 default supports mouse scrolling between slides without need additional javascript user , i've found work flawlessly.
original question:
i'm using full screen revolution slider , using code found on developers site i've managed slides advance using mousewheel scroll.
the problem slider advancing more 1 slide @ time depending on how user scrolls. need slide scroll once per mousewheel event. tried using solution found here couldn't work: removing event after 1 scroll
i'm new javascript appreciated.
here code using
(function() { var slider = revapi1; slider.parent().on('mousewheel dommousescroll', function(event) { if(event.originalevent.wheeldelta > 0 || event.originalevent.detail < 0) { slider.revprev(); } else { slider.revnext(); } }); })()
revprev()
, revnext()
moves happen.
deeper should find speed, steps_length...
Comments
Post a Comment