Files
hometown/docs/全景视角与移动端缩放说明.md
2026-03-09 10:04:41 +08:00

16 lines
923 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 全景视角与移动端缩放说明
## 拉近 / 拉远 与 FOV视野角
在本项目使用的 Pannellum 里,视角由 **hfov**(水平视野角,单位度)控制。按你的定义:
- **拉近** = hfov **变大** → 视野变宽(例如从 50 调到 90
- **拉远** = hfov **变小** → 视野变窄、看得更近/更局部(例如从 90 调到 40
对应到手势:双指**捏合**时 hfov 变大(拉近/视野变宽),双指**张开**时 hfov 变小(拉远/看得更近)。移动端已优化双指缩放的跟手程度。
## 移动端双指缩放优化
- 已把 Pannellum 内双指 pinch 的缩放系数从 **0.1** 调整为 **0.22**,相同手指移动距离下 hfov 变化更大,相机更跟手。
- 移动端 hfov 范围:**minHfov 28**(最大拉近)、**maxHfov 105**(最大拉远),可在 `index.html` / `src/main.js``buildViewer` 里按需修改。