From d9a4b10563028580d8e3670e43b9ecedde7feed9 Mon Sep 17 00:00:00 2001 From: Mitchell McCaffrey Date: Fri, 22 May 2020 13:44:05 +1000 Subject: [PATCH] Fix token resolution for high DPI screens --- src/components/map/MapToken.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/map/MapToken.js b/src/components/map/MapToken.js index 24d4203..b8d4ce5 100644 --- a/src/components/map/MapToken.js +++ b/src/components/map/MapToken.js @@ -71,7 +71,7 @@ function MapToken({ tokenHeight > 0 ) { image.cache({ - pixelRatio: debouncedStageScale, + pixelRatio: debouncedStageScale * window.devicePixelRatio, }); image.drawHitFromCache(); // Force redraw