jinx 1 year ago
parent
commit
7bd18dc163
2 changed files with 3 additions and 2 deletions
  1. 2 2
      public/krpano/tour.xml
  2. 1 0
      src/components/Home.vue

+ 2 - 2
public/krpano/tour.xml

@@ -301,8 +301,8 @@
       fadeintime="0.15" fadeincurve="1.1"
       fadeouttime="0.3" fadeoutcurve="0.7"
       onover=""
-      onhover="js(onHotspotHover())"
-      onout="js(onHotspotOut())"
+      onhover="tween(fillcolor,0xffffff);js(onHotspotHover())"
+      onout="tween(fillcolor,0xfc6970);js(onHotspotOut())"
       onup=""
       onclick="js(enterFDKK())"
       onloaded=""

+ 1 - 0
src/components/Home.vue

@@ -61,6 +61,7 @@ const hanlderEvent = () => {
     // isHover = false;
   };
   window.onHotspotHover = () => {
+    // console.error('onHotspotHover')
     // if (!isHover) {
     //   isHover = true;
     //   krpano.set("hotspot[eee].fillcolor", "0xFFFFFF");