Created
July 29, 2016 11:57
-
-
Save ozknozsrt/ce3fd4bc161f6b0b3a07204f9bf1612e to your computer and use it in GitHub Desktop.
Owl Carousel 1 - Mouse Wheel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var owl = $('.owl-class'); | |
owl.on('mousewheel', '.owl-wrapper', function (e) { | |
if (e.deltaY>0) { | |
owl.trigger('owl.next'); | |
} else { | |
owl.trigger('owl.prev'); | |
} | |
e.preventDefault(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment