Fix token resolution for high DPI screens

This commit is contained in:
Mitchell McCaffrey 2020-05-22 13:44:05 +10:00
parent 118878d9e1
commit d9a4b10563

View File

@ -71,7 +71,7 @@ function MapToken({
tokenHeight > 0 tokenHeight > 0
) { ) {
image.cache({ image.cache({
pixelRatio: debouncedStageScale, pixelRatio: debouncedStageScale * window.devicePixelRatio,
}); });
image.drawHitFromCache(); image.drawHitFromCache();
// Force redraw // Force redraw