score: fix automatic scrolling on score

pull/828/head
Mika Dede 2021-09-27 13:48:12 +02:00
parent de2e897119
commit 64930265d7
No known key found for this signature in database
GPG Key ID: 546586DC38D45BBD
1 changed files with 5 additions and 2 deletions

View File

@ -182,13 +182,16 @@ function matchScore(player) {
}
function score(player) {
let setFirstShownSet = function () {
firstShownSet = currentSet() - Math.floor(setsPerPage() / 2);
};
let updateCurrentSet = function (val) {
cSet += val;
firstShownSet = Math.max(0, currentSet() - settings.setsPerPage + 1);
setFirstShownSet();
};
if (!matchEnded() || correctionMode) {
firstShownSet = currentSet() - Math.floor(setsPerPage() / 2);
setFirstShownSet();
}
if (correctionMode) {