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
Showing only changes of commit c0d541d31b - Show all commits

View File

@@ -376,7 +376,7 @@ void main() {
cur[0] += (target[0] - cur[0]) * factor;
cur[1] += (target[1] - cur[1]) * factor;
} else {
if (pointerPosRef.current) {
if (pointerPosRef.current || isMobileRef.current) {
uniforms.iMouse.value = mouseTargetRef.current;
}
lastTimeRef.current = t;