core/js/lib/jquery/plugins/fullpage/fullpage.js
/**
        * Adds the auto scrolling action for the mouse wheel and trackpad.
        * After this function is called, the mousewheel and trackpad movements will scroll through sections
        * https://developer.mozilla.org/en-US/docs/Web/Events/wheel
        */
Adds the auto scrolling action for the mouse wheel and trackpad.
Adds the auto scrolling action for the mouse wheel and trackpad .
function addMouseWheelHandler() {
            var prefix = '';
            var _addEventListener;
            if (window.addEventListener) {
                _addEventListener = "addEventListener";
            } else {
                _addEventListener = "attachEvent";
                prefix = 'on';
            }
            var support = 'onwheel' in document.createElement('div') ? 'wheel' : 
                document.onmousewheel !== undefined ? 'mousewheel' : 
                    'DOMMouseScroll'; 
            if (support == 'DOMMouseScroll') {
                document[_addEventListener](prefix + 'MozMousePixelScroll', MouseWheelHandler, false);
            }
            else {
                document[_addEventListener](prefix + support, MouseWheelHandler, false);
            }
        }
function addMouseWheelHandler ( ) { var prefix = '' ; var _addEventListener ; if ( window . addEventListener ) { _addEventListener = "addEventListener" ; } else { _addEventListener = "attachEvent" ; prefix = 'on' ; } var support = 'onwheel' in document . createElement ( 'div' ) ? 'wheel' : document . onmousewheel !== undefined ? 'mousewheel' : 'DOMMouseScroll' ; if ( support == 'DOMMouseScroll' ) { document [ _addEventListener ] ( prefix + 'MozMousePixelScroll' , MouseWheelHandler , false ) ; } else { document [ _addEventListener ] ( prefix + support , MouseWheelHandler , false ) ; } }
Adds the auto scrolling action for the mouse wheel and trackpad.
Adds the auto scrolling action for the mouse wheel and trackpad .
// detect available wheel event // Modern browsers support "wheel" // Webkit and IE support at least "mousewheel" // let's assume that remaining browsers are older Firefox //handle MozMousePixelScroll in older Firefox