kmc-frontend/dist/assets/kmc-frontend.js
// Creates a virtual scrolling mask to absorb touchmove, keyboard, scrollbar clicking, and wheel events
Creates a virtual scrolling mask to absorb touchmove, keyboard, scrollbar clicking, and wheel events
Creates a virtual scrolling mask to absorb touchmove keyboard scrollbar clicking and wheel events
function disableElementScroll() {
        var zIndex = 50;
        var scrollMask = Ember.$('<div class="md-scroll-mask" style="z-index: ' + zIndex + '">\n          <div class="md-scroll-mask-bar"></div>\n        </div>');
        body.appendChild(scrollMask[0]);
        scrollMask.on('wheel', preventDefault);
        scrollMask.on('touchmove', preventDefault);
        $document.on('keydown', disableKeyNav);
        return function restoreScroll() {
          scrollMask.off('wheel');
          scrollMask.off('touchmove');
          scrollMask[0].parentNode.removeChild(scrollMask[0]);
          $document.off('keydown', disableKeyNav);
          delete util.disableScrollAround._enableScrolling;
        };
        function disableKeyNav() {
          return;
        }
        function preventDefault(e) {
          e.preventDefault();
        }
      }
function disableElementScroll ( ) { var zIndex = 50 ; var scrollMask = Ember . $ ( '<div class="md-scroll-mask" style="z-index: ' + zIndex + '">\n          <div class="md-scroll-mask-bar"></div>\n        </div>' ) ; body . appendChild ( scrollMask [ 0 ] ) ; scrollMask . on ( 'wheel' , preventDefault ) ; scrollMask . on ( 'touchmove' , preventDefault ) ; $document . on ( 'keydown' , disableKeyNav ) ; return function restoreScroll ( ) { scrollMask . off ( 'wheel' ) ; scrollMask . off ( 'touchmove' ) ; scrollMask [ 0 ] . parentNode . removeChild ( scrollMask [ 0 ] ) ; $document . off ( 'keydown' , disableKeyNav ) ; delete util . disableScrollAround . _enableScrolling ; } ; function disableKeyNav ( ) { return ; } function preventDefault ( e ) { e . preventDefault ( ) ; } }
Creates a virtual scrolling mask to absorb touchmove, keyboard, scrollbar clicking, and wheel events
Creates a virtual scrolling mask to absorb touchmove keyboard scrollbar clicking and wheel events
// Prevent keypresses from elements inside the body // used to stop the keypresses that could cause the page to scroll // (arrow keys, spacebar, tab, etc). // -- temporarily removed this logic, will possibly re-add at a later date /* if (!element[0].contains(e.target)) {
            e.preventDefault();
            e.stopImmediatePropagation();
          } */