mirror of
https://github.com/gpxstudio/gpx.studio.git
synced 2025-08-31 15:43:25 +00:00
use devicePixelRatio in additional scales logic
This commit is contained in:
@@ -62,7 +62,7 @@
|
||||
let canvas: HTMLCanvasElement;
|
||||
let showAdditionalScales = true;
|
||||
let updateShowAdditionalScales = () => {
|
||||
showAdditionalScales = canvas.width >= 600;
|
||||
showAdditionalScales = canvas.width / window.devicePixelRatio >= 600;
|
||||
};
|
||||
let overlay: HTMLCanvasElement;
|
||||
let chart: Chart;
|
||||
|
Reference in New Issue
Block a user