ENH - refine camera capture controls

Move Photo and Video selection onto Sky UI, separate the bottom controls, and expose the camera movement lock with localized labels. Support smooth wheel zoom down to 0.5x inside the phone crop and extend browser lifecycle coverage and camera contracts.
This commit is contained in:
Leon.Schmidt
2026-08-15 22:19:28 +02:00
parent 493375bbfa
commit 387c27cc7f
8 changed files with 249 additions and 100 deletions
+5 -5
View File
@@ -31,16 +31,16 @@ describe('gameViewGeometry', () => {
])
})
it('keeps 0.5x full-frame while higher zoom levels crop around the center', () => {
it('widens the phone crop at 0.5x while higher zoom levels crop around the center', () => {
const wideGeometry = gameViewGeometry(1920, 1080, 540, 720, 0.5)
expect(Array.from(wideGeometry.textureCoordinates)).toEqual([
expect.closeTo(0.29, 2),
expect.closeTo(0.08, 2),
0,
expect.closeTo(0.71, 2),
expect.closeTo(0.92, 2),
0,
expect.closeTo(0.29, 2),
expect.closeTo(0.08, 2),
1,
expect.closeTo(0.71, 2),
expect.closeTo(0.92, 2),
1,
])
expect(Array.from(wideGeometry.positions)).toEqual([