Explorar el Código

style: 更改热点位置

chenlei hace 11 meses
padre
commit
231f8d801f
Se han modificado 1 ficheros con 5 adiciones y 5 borrados
  1. 5 5
      Code/src/pages/A3banquet/PanoImg/index.tsx

+ 5 - 5
Code/src/pages/A3banquet/PanoImg/index.tsx

@@ -6,9 +6,9 @@ import HotIcon from '@/components/HotIcon'
 import { KrpanoMiddleware, KrpanoMiddlewareMethods } from '@/components/KrpanoMiddleware'
 import { HotSpot, Krpano, Scene, View } from '@dage/krpano'
 
-window.draggbleHotspotEvent = (ath: number, atv: number) => {
-  console.log(`ath: ${ath}, atv: ${atv}`)
-}
+// window.draggbleHotspotEvent = (ath: number, atv: number) => {
+//   console.log(`ath: ${ath}, atv: ${atv}`)
+// }
 
 function PanoImg() {
   // 0为 第一种模式的热点 其他为第二种
@@ -84,14 +84,14 @@ function PanoImg() {
                 onOut={() => setActiveIdx(-1)}
                 onClick={() => setInd(index)}
                 // @ts-ignore
-                onDown='draggable_hotspot()'
+                // onDown='draggable_hotspot()'
               >
                 <HotIcon
                   isPano
                   isModel={item.isModel ? true : false}
                   key={index}
                   index={index}
-                  // isHoverAc={activeIdx === index}
+                  isHoverAc={activeIdx === index}
                   hoverSrc={item.hoverSrc}
                 />
               </HotSpot>