JeremyHeleine / Photo-Sphere-Viewer

A JavaScript library to display Photo Sphere panoramas.
856 stars 960 forks source link

The picture jumps when zooming,How to solve this problem? #110

Open webgogogo opened 4 years ago

webgogogo commented 4 years ago

Photo-Sphere-Viewer Version: 4.0.5

Device: Android Phone Version 10

Browser: Quark 4.2.0.138

webgogogo commented 4 years ago
<div id="viewer"></div>

  <script src="./js/three.min.js"></script>
  <script src="./js/polyfill.min.js"></script>
  <script src="./js/browser.min.js"></script>
  <script src="./js/NoSleep.min.js"></script>
  <script src="./js/DeviceOrientationControls.js"></script>
  <script src="./js/StereoEffect.js"></script>
  <script src="./js/photo-sphere-viewer.js"></script>
  <script src="./js/gyroscope.js"></script>
  <script>
    var viewer = new PhotoSphereViewer.Viewer({
      container: document.querySelector('#viewer'),
      panorama: {
        left: 'images/pano_r.jpg', front: 'images/pano_b.jpg',
        right: 'images/pano_l.jpg', back: 'images/pano_f.jpg',
        top: 'images/pano_u.jpg', bottom: 'images/pano_d.jpg',
      },
      caption: '测试',
      autorotateSpeed: '1rpm',
      defaultZoomLvl: 0,
      loadingImg: 'images/loading.gif',
      loadingTxt: '加载中...',
      navbar: ['autorotate', 'fullscreen'],
      plugins: [
        PhotoSphereViewer.GyroscopePlugin,
      ]
    });
  </script>