Skip to content

Commit 40df9a8

Browse files
committed
Clamp pitch to negative (i.e. looking down)
1 parent 82c1b03 commit 40df9a8

File tree

1 file changed

+1
-1
lines changed
  • packages/handle/src/screen

1 file changed

+1
-1
lines changed

packages/handle/src/screen/map.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function defaultMapHandlesScreenCameraApply(
2020
store: StoreApi<ScreenCameraState>,
2121
) {
2222
if (update.pitch != null) {
23-
update.pitch = clamp(update.pitch, 0, Math.PI / 2)
23+
update.pitch = clamp(update.pitch, -Math.PI / 2, 0)
2424
}
2525
store.setState(update)
2626
}

0 commit comments

Comments
 (0)