Fixed blocking of mouse scroll when context menu is visible
This commit is contained in:
parent
65c0c480d2
commit
1c1ffe4b8f
|
@ -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();
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue