🐛 fix UI repositioning and mouse coords after window resize

This commit is contained in:
2026-03-20 12:19:57 +00:00
parent 5828f40497
commit 8ed67313a8
4 changed files with 41 additions and 12 deletions

View File

@@ -7,6 +7,11 @@ Format follows [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
## [Unreleased]
### Fixed
- UI elements (stockpile panel, controls hint) now reposition correctly after window resize
- Centered overlay panels (build menu, villager panel) close on resize so they reopen at the correct position
- Mouse world coordinates now use `ptr.worldX`/`ptr.worldY` in BuildingSystem and FarmingSystem, fixing misalignment after resize or zoom
### Added
- Right-click context menu: suppresses browser default, shows Build and Folks actions in the game world
- Initial project setup: Phaser 3 + TypeScript + Vite