demos/sample-tour/index.js
function stopTouchAndScrollEventPropagation(element, eventList) {
    var eventList = [ 'touchstart', 'touchmove', 'touchend', 'touchcancel',
                      'wheel', 'mousewheel' ];
    for (var i = 0; i < eventList.length; i++) {
      element.addEventListener(eventList[i], function(event) {
        event.stopPropagation();
      });
    }
  }
function stopTouchAndScrollEventPropagation(element, eventList) {
    var eventList = [ 'touchstart', 'touchmove', 'touchend', 'touchcancel',
                      'wheel', 'mousewheel' ];
    for (var i = 0; i < eventList.length; i++) {
      element.addEventListener(eventList[i], function(event) {
        event.stopPropagation();
      });
    }
  }
function stopTouchAndScrollEventPropagation ( element , eventList ) { var eventList = [ 'touchstart' , 'touchmove' , 'touchend' , 'touchcancel' , 'wheel' , 'mousewheel' ] ; for ( var i = 0 ; i < eventList . length ; i ++ ) { element . addEventListener ( eventList [ i ] , function ( event ) { event . stopPropagation ( ) ; } ) ; } }
Prevent touch and scroll events from reaching the parent element.
Prevent touch and scroll events from reaching the parent element .