Fix GradientBlinds scroll drift on mobile #37
@@ -376,7 +376,7 @@ void main() {
|
|||||||
cur[0] += (target[0] - cur[0]) * factor;
|
cur[0] += (target[0] - cur[0]) * factor;
|
||||||
cur[1] += (target[1] - cur[1]) * factor;
|
cur[1] += (target[1] - cur[1]) * factor;
|
||||||
} else {
|
} else {
|
||||||
if (pointerPosRef.current) {
|
if (pointerPosRef.current || isMobileRef.current) {
|
||||||
uniforms.iMouse.value = mouseTargetRef.current;
|
uniforms.iMouse.value = mouseTargetRef.current;
|
||||||
}
|
}
|
||||||
lastTimeRef.current = t;
|
lastTimeRef.current = t;
|
||||||
|
|||||||
Reference in New Issue
Block a user