fix(earth-controls): zoom-aware drag sensitivity and bump version to 0.22.13

This commit is contained in:
linkong
2026-04-07 09:29:27 +08:00
parent 1a3abf73bb
commit 5b9ef0223d
7 changed files with 42 additions and 7 deletions

View File

@@ -7,6 +7,27 @@ This project follows the repository versioning rule:
- `feature` -> `+0.1.0`
- `bugfix` -> `+0.0.1`
## 0.22.13
Released: 2026-04-07
### Highlights
- Added zoom-aware drag sensitivity on Earth interaction so drag distance naturally becomes finer when zoomed in and faster when zoomed out.
- Shipped as a focused bugfix release (`+0.0.1`) to improve operation feel without changing existing data/visual layers.
### Improved
- Improved [main.js](/home/ray/dev/linkong/planet/frontend/public/earth/js/main.js) by replacing fixed drag rotation gain with a dynamic factor derived from current zoom level.
- Improved [main.js](/home/ray/dev/linkong/planet/frontend/public/earth/js/main.js) by introducing `getDragRotationFactor()` so interaction tuning stays centralized instead of mixing formulas in pointer handlers.
- Improved [constants.js](/home/ray/dev/linkong/planet/frontend/public/earth/js/constants.js) by adding explicit drag tuning knobs:
`dragRotationFactorBase`, `dragRotationScaleMin`, and `dragRotationScaleMax`.
### Fixed
- Fixed the previous interaction mismatch where drag traveled the same angular distance regardless of zoom level, making close-up inspection too jumpy and far-view browsing too slow.
- Fixed maintainability drift where drag sensitivity had a hardcoded literal in logic code instead of configurable constants.
## 0.22.12
Released: 2026-04-02