fix initial loading of pannellum viewer for vegbilder photos

This commit is contained in:
Martin Raifer
2025-04-29 12:54:59 +02:00
parent 81d94a138b
commit 0e6ca91727
2 changed files with 3 additions and 2 deletions

View File

@@ -487,8 +487,8 @@ export default {
_currentFrame = d.is_sphere? _pannellumFrame : _planeFrame;
_currentFrame
.selectPhoto(d, keepOrientation)
.showPhotoFrame(wrap);
.showPhotoFrame(wrap)
.selectPhoto(d, keepOrientation);
return this;
},

View File

@@ -135,6 +135,7 @@ export function svgVegbilder(projection, context, dispatch) {
if (!service) return;
const frame = service.photoFrame();
if (!frame) return;
// update viewfield rotation
_viewerYaw = frame.getYaw();