Skip to content

Commit

Permalink
Fix pixel density of selection stroke
Browse files Browse the repository at this point in the history
  • Loading branch information
esdmr committed Aug 2, 2023
1 parent 61e0c01 commit 2653bd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ function onFrame(ms: DOMHighResTimeStamp) {
context.lineWidth = selectionStrokeWidth * dip;
context.strokeStyle = selectionStrokeStyle;
context.lineDashOffset =
(ms % (selectionStrokeDashLength * dip)) * selectionStrokeSpeed;
(ms % selectionStrokeDashLength) * selectionStrokeSpeed * dip;
context.setLineDash([
selectionStrokeDashLength * dip,
selectionStrokeDashLength * dip,
Expand Down

0 comments on commit 2653bd8

Please sign in to comment.