mirror of
https://github.com/FoggedLens/iD.git
synced 2026-02-12 16:52:50 +00:00
reset yaw when switching between 360° and planar photo
(and also immediately when switching between different 360° photos)
This commit is contained in:
@@ -139,6 +139,7 @@ export default {
|
||||
pitch = _pannellumViewer.getPitch();
|
||||
}
|
||||
_pannellumViewer.loadScene(key, pitch, yaw);
|
||||
dispatch.call('viewerChanged');
|
||||
|
||||
if (_currScenes.length > 3) {
|
||||
const old_key = _currScenes.shift();
|
||||
|
||||
@@ -86,6 +86,7 @@ export default {
|
||||
},
|
||||
|
||||
selectPhoto: function (data, keepOrientation) {
|
||||
dispatch.call('viewerChanged');
|
||||
loadImage(_photo, '');
|
||||
loadImage(_photo, data.image_path)
|
||||
.then(() => {
|
||||
|
||||
@@ -449,8 +449,9 @@ export default {
|
||||
planePhotoFrame.init(context, wrapEnter)
|
||||
]).then(([pannellumPhotoFrame, planePhotoFrame]) => {
|
||||
_pannellumFrame = pannellumPhotoFrame;
|
||||
_planeFrame = planePhotoFrame;
|
||||
_pannellumFrame.event.on('viewerChanged', () => dispatch.call('viewerChanged'));
|
||||
_planeFrame = planePhotoFrame;
|
||||
_planeFrame.event.on('viewerChanged', () => dispatch.call('viewerChanged'));
|
||||
});
|
||||
|
||||
return _loadViewerPromise;
|
||||
|
||||
Reference in New Issue
Block a user