jquery.multiscroll.js
/* Detecting touch events

        * As we are changing the top property of the page on scrolling, we can not use the traditional way to detect it.
        * This way, the touchstart and the touch moves shows an small difference between them which is the
        * used one to determine the direction.
        */
Detecting touch events
As we are changing the top property of the page on scrolling, we can not use the traditional way to detect it.
This way, the touchstart and the touch moves shows an small difference between them which is the
used one to determine the direction.
Detecting touch events As we are changing the top property of the page on scrolling we can not use the traditional way to detect it . This way the touchstart and the touch moves shows an small difference between them which is the used one to determine the direction .
function touchMoveHandler(e){
            if(isReallyTouch(e)){
                event.preventDefault();
                var activeSection = $('.ms-left .ms-section.active');
                if (canScroll) { 
                    var touchEvents = getEventsPage(e);
                    touchEndY = touchEvents['y'];
                    touchEndX = touchEvents['x'];
                    if (Math.abs(touchStartY - touchEndY) > ($(window).height() / 100 * options.touchSensitivity)) {
                        if (touchStartY > touchEndY) {
                            MS.moveSectionDown();
                        } else if (touchEndY > touchStartY) {
                            MS.moveSectionUp();
                        }
                    }
                }
            }
        }
function touchMoveHandler ( e ) { if ( isReallyTouch ( e ) ) { event . preventDefault ( ) ; var activeSection = $ ( '.ms-left .ms-section.active' ) ; if ( canScroll ) { var touchEvents = getEventsPage ( e ) ; touchEndY = touchEvents [ 'y' ] ; touchEndX = touchEvents [ 'x' ] ; if ( Math . abs ( touchStartY - touchEndY ) > ( $ ( window ) . height ( ) / 100 * options . touchSensitivity ) ) { if ( touchStartY > touchEndY ) { MS . moveSectionDown ( ) ; } else if ( touchEndY > touchStartY ) { MS . moveSectionUp ( ) ; } } } } }
Detecting touch events
 As we are changing the top property of the page on scrolling, we can not use the traditional way to detect it.
Detecting touch events As we are changing the top property of the page on scrolling we can not use the traditional way to detect it .
//preventing the easing on iOS devices
 //if theres any #
 //is the movement greater than the minimum resistance to scroll?
