Skip to content

Commit

Permalink
fix(popup-menu): prevent canvas scrolling inside popup menu
Browse files Browse the repository at this point in the history
This ensures the popup menu is not accidentally canvas scrolled on mouse wheel.

Closes #729
  • Loading branch information
nikku committed Jan 6, 2023
1 parent 9771633 commit a438b09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/features/popup-menu/PopupMenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ PopupMenu.prototype._createContainer = function(config) {
var canvas = this._canvas,
parent = canvas.getContainer();

const container = domify(`<div class="djs-popup-parent" data-popup=${config.provider}></div>`);
const container = domify(`<div class="djs-popup-parent djs-scrollable" data-popup=${config.provider}></div>`);

parent.appendChild(container);

Expand Down

0 comments on commit a438b09

Please sign in to comment.