Skip to content

armgit / dub

Public Imported from GitHub
0

The modern link attribution platform. Loved by world-class engineering teams at Twilio, Zillow, Jobber, Vercel, Raycast, and more.

Update shimmer-dots.tsx

Tim Wilson139d1910a92e
diff --git a/packages/ui/src/shimmer-dots.tsx b/packages/ui/src/shimmer-dots.tsx
index 029fca79d7..9aa77acb94 100644
--- a/packages/ui/src/shimmer-dots.tsx
+++ b/packages/ui/src/shimmer-dots.tsx
@@ -119,8 +119,8 @@ export function ShimmerDots({
gl.enable(gl.DEPTH_TEST);
- gl.uniform1f(dotSizeUniform, dotSize);
- gl.uniform1f(cellSizeUniform, cellSize);
+ gl.uniform1f(dotSizeUniform, dotSize * window.devicePixelRatio);
+ gl.uniform1f(cellSizeUniform, cellSize * window.devicePixelRatio);
gl.uniform1f(speedUniform, speed);
function render(timestamp: number) {