Fix GradientBlinds scroll drift on mobile #37

Merged
ragusa-it merged 2 commits from fix/gradient-blinds-mobile-scroll-5721743487777744153 into main 2026-01-30 00:17:00 +00:00

2 Commits

Author SHA1 Message Date
google-labs-jules[bot]
c0d541d31b Fix GradientBlinds scroll drift on mobile and address dampening regression
- Added isMobile detection (<= 768px) in GradientBlinds.tsx
- Updated onPointerMove to calculate container-relative coordinates immediately on mobile
- Updated animation loop to skip scroll-based target updates on mobile
- Fixed regression where disabling mouse dampening on mobile would freeze the spotlight
- Prevents spotlight from drifting across the background during scroll inertia on mobile devices

Co-authored-by: ragusa-it <196988693+ragusa-it@users.noreply.github.com>
2026-01-29 22:30:40 +00:00
google-labs-jules[bot]
7bc42f8d48 Fix GradientBlinds scroll drift on mobile
- Added isMobile detection (<= 768px) in GradientBlinds.tsx
- Updated onPointerMove to calculate container-relative coordinates immediately on mobile
- Updated animation loop to skip scroll-based target updates on mobile
- Prevents spotlight from drifting across the background during scroll inertia on mobile devices

Co-authored-by: ragusa-it <196988693+ragusa-it@users.noreply.github.com>
2026-01-29 22:09:19 +00:00