|
@@ -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>
|