Skip to content

Commit

Permalink
feat: detach context menu to enlarge
Browse files Browse the repository at this point in the history
  • Loading branch information
volishevko committed Oct 11, 2023
1 parent 0352457 commit 9e76675
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sources/views/subviews/gallery/galleryMobile.js
Original file line number Diff line number Diff line change
Expand Up @@ -690,8 +690,11 @@ export default class GalleryMobileView extends JetView {
}
const imgWindowTemplateView = this.imageWindow.queryView({id: mobileImageWindow.getViewerId()})
.$view;
this.enlargeContextMenu.attachTo(imgWindowTemplateView);
this.enlargeContextMenu.setContext({obj: this.imageWindowTemplate});

if (util.isIOS()) {
this.enlargeContextMenu.attachTo(imgWindowTemplateView);
this.enlargeContextMenu.setContext({obj: this.imageWindowTemplate});
}

const isicId = this.getRoot().$scope.getParam("image");
if (!util.isMobilePhone()) {
Expand Down

0 comments on commit 9e76675

Please sign in to comment.