From 1d89f4727304fe5fa251ba26e17adddebac33f5a Mon Sep 17 00:00:00 2001 From: Parv Bansal <231238266+parvbansal11@users.noreply.github.com> Date: Wed, 5 Aug 2026 01:31:59 +0530 Subject: [PATCH] perf: cap mobile field pixel density --- field.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/field.js b/field.js index d4e296c..94d9951 100644 --- a/field.js +++ b/field.js @@ -603,7 +603,7 @@ /* ------------------------------------------------------------ size --- */ const resize = () => { - dpr = Math.min(constrained ? 1.25 : 2, window.devicePixelRatio || 1); + dpr = Math.min(coarseField ? 1 : constrained ? 1.25 : 2, window.devicePixelRatio || 1); W = window.innerWidth; H = window.innerHeight; canvas.width = Math.round(W * dpr);