Skip to content

Commit

Permalink
Always jump to the end when setting an alg.
Browse files Browse the repository at this point in the history
  • Loading branch information
lgarron committed Nov 24, 2023
1 parent d435f03 commit 0d303d3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/lib/elements/CompetitorScrambleDisplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export class CompetitorScrambleDisplay extends HTMLElement {
if (typeof scrambleStringOrStrings === "string") {
this.classList.remove("show-multi");
this.querySelector("twisty-player").alg = scrambleStringOrStrings;
this.querySelector("twisty-player").timestamp = "end";
multiElem.hidden = true;
} else {
this.classList.add("show-multi");
Expand Down Expand Up @@ -114,6 +115,7 @@ export class CompetitorScrambleDisplay extends HTMLElement {
);
this.querySelector("twisty-player").alg =
this.#currentSubScrambleStrings[this.#currentSubScrambleIndex];
this.querySelector("twisty-player").timestamp = "end";
this.querySelector(".multi .current-sub-scramble-num").textContent = `${
this.#currentSubScrambleIndex + 1
}`;
Expand Down
1 change: 1 addition & 0 deletions src/lib/elements/MultiBlindGridDisplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ class MultiBlindGridDisplay extends HTMLElement {
this.setNumColumnsAndRows(numCols, numRows);
for (const [i, scramble] of scrambles.entries()) {
this.#subScrambleElems[i].alg = scramble;
this.#subScrambleElems[i].timestamp = "end";
}
}

Expand Down

0 comments on commit 0d303d3

Please sign in to comment.