Commit a671562
ref(orbital): Drive camera layout from matchMedia change event, not resize
Split the resize handler into two concerns:
- resize: viewport geometry only (aspect ratio, renderer size)
- mobileQuery change: camera position when the breakpoint crosses
This means camera layout only adjusts when the device genuinely
crosses the mobile/desktop threshold, not on every pixel of window
resizing — avoiding false triggers from desktop window dragging.
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 77c676e commit a671562
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
473 | 473 | | |
474 | 474 | | |
475 | 475 | | |
476 | | - | |
477 | 476 | | |
478 | 477 | | |
479 | 478 | | |
480 | | - | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
481 | 483 | | |
482 | 484 | | |
483 | 485 | | |
| |||
0 commit comments