Skip to content

Commit

Permalink
make sure viewer is visible before selecting photo
Browse files Browse the repository at this point in the history
otherwise the newly selected photo is not displayed correctly when switching between regular and 360 photos

see #10362
  • Loading branch information
tyrasd committed Aug 8, 2024
1 parent 9e239df commit b0e47ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/services/panoramax.js
Original file line number Diff line number Diff line change
Expand Up @@ -501,8 +501,8 @@ export default {
_currentFrame = d.isPano ? _pannellumFrame : _planeFrame;

_currentFrame
.selectPhoto(d, true)
.showPhotoFrame(wrap);
.showPhotoFrame(wrap)
.selectPhoto(d, true);
});

function localeDateString(s) {
Expand Down

0 comments on commit b0e47ca

Please sign in to comment.