Stop propagating scroll events when modal dialogs are visible or scrollable popups have focus

You can get an idea of how it could work by adding something like this to menu-panel.js.es6. This doesn’t take care of touch events and is resetting the body height incorrectly. It only stops the scrolling on the body if the menu has a scrollbar.

  mouseEnter() {
    let height = $(window).height();
    let contentHeight = parseInt(this.$('.panel-body-contents').height());
    let menuHeight = this.$().height();
    if (contentHeight > menuHeight) {
      $('body').css({
        'overflow': 'hidden',
        'height': height
      });
    }
  },

  mouseLeave() {
    $('body').css({
      'overflow': 'visible',
      'height': 'auto',
    });
  },
「いいね!」 2