Skip to content

Commit

Permalink
Fix #1564 virtual-tour: respect minimizeOnHotspotClick option (map …
Browse files Browse the repository at this point in the history
…& plan)
  • Loading branch information
mistic100 committed Feb 22, 2025
1 parent 878316a commit 74bbb9d
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions packages/virtual-tour-plugin/src/VirtualTourPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,9 +326,12 @@ export class VirtualTourPlugin extends AbstractConfigurablePlugin<
if (this.gallery?.config.hideOnClick) {
this.gallery.hide();
}

this.map?.minimize();
this.plan?.minimize();
if (this.map?.config.minimizeOnHotspotClick) {
this.map.minimize();
}
if (this.plan?.config.minimizeOnHotspotClick) {
this.plan.minimize();
}

if (transitionOptions.rotation && transitionOptions.effect === 'none') {
return this.viewer
Expand Down

0 comments on commit 74bbb9d

Please sign in to comment.