diff --git a/frontend-js/src/main/js/gui/ContextMenu.js b/frontend-js/src/main/js/gui/ContextMenu.js index 65573410e5085e693b8b0da6045d6c3c0e65c7f1..4425389f9262e500fa09bfd28be684a93915eaeb 100644 --- a/frontend-js/src/main/js/gui/ContextMenu.js +++ b/frontend-js/src/main/js/gui/ContextMenu.js @@ -36,6 +36,7 @@ function ContextMenu(params) { } }; $(document).on('click', self._documentClickListener); + $(document).on('touchstart', self._documentClickListener); } ContextMenu.prototype = Object.create(AbstractGuiElement.prototype); @@ -44,6 +45,7 @@ ContextMenu.prototype.constructor = ContextMenu; ContextMenu.prototype.destroy = function () { var self = this; $(document).off('click', self._documentClickListener); + $(document).off('touchstart', self._documentClickListener); }; ContextMenu.prototype.addOption = function (name, handler, disabled) {