From 1cd170423979b5aeb9d332f15031305c26850efb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lumi=C3=A8re=20=C3=89lev=C3=A9?= <88174309+PoneyClairDeLune@users.noreply.github.com> Date: Fri, 20 Oct 2023 19:41:15 +0000 Subject: [PATCH] Only apply pixel-correction on Firefox. --- src/cambiare/index.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/cambiare/index.mjs b/src/cambiare/index.mjs index 246416e8..85d5e4e3 100644 --- a/src/cambiare/index.mjs +++ b/src/cambiare/index.mjs @@ -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();