Skip to content

Commit

Permalink
fix pixel ratio for crosshairs
Browse files Browse the repository at this point in the history
  • Loading branch information
IbrahimCSAE committed May 22, 2024
1 parent 2671f86 commit af17103
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/tools/src/tools/CrosshairsTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,8 @@ class CrosshairsTool extends AnnotationTool {
clientWidth * 0.95,
clientHeight * 0.05,
] as Types.Point2;
const circleRadius = canvasDiagonalLength * 0.01;
const circleRadius =
(canvasDiagonalLength / window.devicePixelRatio || 1) * 0.01;

const circleUID = '0';
drawCircleSvg(
Expand Down

0 comments on commit af17103

Please sign in to comment.