Skip to content

Commit

Permalink
Only apply pixel-correction on Firefox.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Oct 20, 2023
1 parent c90ff92 commit 1cd1704
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cambiare/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -254,13 +254,13 @@ let Cambiare = class extends RootDisplay {
};
} else {
context.setLineDash(lineDash[0]);
if (range != 4) {
if (range != 4 && self?.document?.mozFullScreen) {
sx += 0.5;
ex += 0.5;
};
};
context.beginPath();
context.moveTo(sx, (range == 4 || !isHeld) ? 2 : 1);
context.moveTo(sx, (range == 4 || !isHeld) && self?.document?.mozFullScreen ? 2 : 1);
context.lineTo(ex, (height >> 1) + 2);
context.lineTo(sx, height + 2);
context.stroke();
Expand Down

0 comments on commit 1cd1704

Please sign in to comment.