Thumbnails Mouse wheel scrolling

burakoz's Avatar

burakoz

29 Nov, 2012 05:35 PM

I have hundreds of images and I need to have this so hard. Is it possible?

  1. Support Staff 1 Posted by Dmytro Semenov on 29 Nov, 2012 10:47 PM

    Dmytro Semenov's Avatar

    Hello,

    Include jquery.mousewheel plugin https://github.com/brandonaaron/jquery-mousewheel and add code like this:

    var rs = $('.royalSlider');
    rs.on('mousewheel', function(e, delta, deltaX, deltaY) {
                e.preventDefault();
                if(delta < 0) {
                      rs.royalSlider('next');
                } else {
                       rs.royalSlider('prev');
                }
    });
    

    I have not tested it, but you should get the idea, if you're developer, you'll make it work.

    Dmitry

  2. 2 Posted by burakoz on 30 Nov, 2012 01:40 PM

    burakoz's Avatar

    Thank you very much. It did help me a lot

  3. burakoz closed this discussion on 30 Nov, 2012 01:40 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac