Skip to content

Commit

Permalink
Fix #1379 virtual-tour: arrows position with gallery in 2d mode
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic100 committed Jul 18, 2024
1 parent 763bf55 commit 8c9b10c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions packages/virtual-tour-plugin/src/ArrowsRenderer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,12 @@ export class ArrowsRenderer extends AbstractComponent {
}

init() {
this.gallery = this.viewer.getPlugin('gallery');
if (this.is3D) {
this.gallery = this.viewer.getPlugin('gallery');

this.gallery?.addEventListener('show-gallery', this);
this.gallery?.addEventListener('hide-gallery', this);
this.gallery?.addEventListener('show-gallery', this);
this.gallery?.addEventListener('hide-gallery', this);
}
}

override destroy(): void {
Expand Down

0 comments on commit 8c9b10c

Please sign in to comment.