xzw 4 år sedan
förälder
incheckning
fe7a3902ec
2 ändrade filer med 7 tillägg och 2 borttagningar
  1. 6 1
      edit-backstage/js/edit.js
  2. 1 1
      web/src/views/gui/newguide.vue

+ 6 - 1
edit-backstage/js/edit.js

@@ -361,9 +361,14 @@ SceneInformation.prototype.init = function(data, data2) {
      
      
      
-    if (data.hotIconScale && parseFloat(data.hotIconScale) <= 1.5 && parseFloat(data.hotIconScale) >= 0.3) {
+    if (data.hotIconScale) {
         hotIconScale.val(parseFloat(data.hotIconScale));
     }
+    hotIconScale.on('change',(e)=>{
+        e.target.value = THREE.Math.clamp(parseFloat(e.target.value), 0.3, 1.5)
+    })
+    
+    
     if (data.supportsVR) {
         VRSwitch.prop('checked', true);
     }

+ 1 - 1
web/src/views/gui/newguide.vue

@@ -162,7 +162,7 @@ export default {
         this.guide = window.player.model.images;
          //监听导览状态
           window.player.on('onplayStatus', (data)=>{
-            this.guideActive = data.destinationItem
+            this.guideActive = data.destinationItem[0]
             this.swiper && this.swiper.slideTo(this.guideActive)
             //if (!data.tourIsPlaying) {
             //  this.guideActive=''