From a97fd8af41c66794968ecf45fe63c4f63671413c 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: Sun, 20 Oct 2024 13:58:04 +0000 Subject: [PATCH] Oops... A tiny bug fix. --- src/disp/disp_sc8850.mjs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/disp/disp_sc8850.mjs b/src/disp/disp_sc8850.mjs index e4d019e..2392551 100644 --- a/src/disp/disp_sc8850.mjs +++ b/src/disp/disp_sc8850.mjs @@ -428,10 +428,10 @@ let Sc8850Display = class extends RootDisplay { strengthHeight = (35 - renderRange + 1) / renderRange, strengthDivider = 256 / strengthHeight; sum.velo.forEach(function (e, i) { - if (upThis.#lingerPress[i]) { + if (scConf.peakHold == 3 && upThis.#lingerPress[i]) { upThis.#lingerPress[i] --; upThis.#lingerExtra[i] = 127; - if (scConf.peakHold == 3 && e < upThis.#linger[i]) { + if (e < upThis.#linger[i]) { upThis.#linger[i] = e; }; };