Dierig Patrick Dierig Patrick - 4 months ago 28
CSS Question

Disable Scrolling in Div

I have a carousel slider on the bottom of my website. Now that slider goes to the left and to the right when i scroll into that slider. I want to disable that. Know anyone how i can disable this feature?

http://www.be-virtual.org/schnittchen

Answer

Open file jquery.contencarousel.js and comment out (or remove it) following part of code:

// adds events to the mouse
                    $el.bind('mousewheel.contentcarousel', function(e, delta) {
                        if(delta > 0) {
                            if( cache.isAnimating ) return false;
                            cache.isAnimating   = true;
                            aux.navigate( -1, $el, $wrapper, settings, cache );
                        }   
                        else {
                            if( cache.isAnimating ) return false;
                            cache.isAnimating   = true;
                            aux.navigate( 1, $el, $wrapper, settings, cache );
                        }   
                        return false;
                    });

This part of code binds the scrolling by mouse with changing slides in your carousel.

Comments