optimization and some fixes
This commit is contained in:
@@ -61,9 +61,7 @@ export const NetrunnerMatrix: React.FC<NetrunnerMatrixProps> = ({
|
||||
};
|
||||
|
||||
const isMobile = checkIsMobile();
|
||||
const pixelScale = isMobile
|
||||
? 1.0
|
||||
: Math.min(window.devicePixelRatio || 1, 1.5);
|
||||
const pixelScale = Math.min(window.devicePixelRatio || 1, 1.5);
|
||||
const initialWidth = container.clientWidth * pixelScale;
|
||||
const initialHeight = container.clientHeight * pixelScale;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user