Skip to content

Commit

Permalink
Oops... A tiny bug fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Oct 20, 2024
1 parent fe2e71d commit a97fd8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/disp/disp_sc8850.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};
};
Expand Down

0 comments on commit a97fd8a

Please sign in to comment.