@worktile/theia 3.0.11 → 3.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3490,7 +3490,7 @@
3490
3490
  };
3491
3491
  TheImageComponent.prototype.preview = function ($event) {
3492
3492
  var _this = this;
3493
- if (this.readonly || this.isCollapsed) {
3493
+ if ((this.readonly || this.isCollapsed) && $event.button === 0) {
3494
3494
  var images = getAllNodesByType(this.editor.children, exports.ElementKinds.image);
3495
3495
  var previewImages = images.map(function (item) {
3496
3496
  return {