mirror of
https://github.com/sky-systems/sky_phone.git
synced 2026-09-04 17:23:25 +00:00
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:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user