Fixed blocking of mouse scroll when context menu is visible

This commit is contained in:
josdejong 2013-11-15 15:49:25 +01:00
parent 65c0c480d2
commit 1c1ffe4b8f
1 changed files with 2 additions and 2 deletions

View File

@ -217,8 +217,8 @@ ContextMenu.prototype.show = function (anchor) {
}
});
this.eventListeners.mousewheel = util.addEventListener(
document, 'mousewheel', function () {
// hide the menu on mouse scroll
document, 'mousewheel', function (event) {
// block scrolling when context menu is visible
event.stopPropagation();
event.preventDefault();
});