Skip to content

Commit 0d303d3

Browse files
committed
Always jump to the end when setting an alg.
1 parent d435f03 commit 0d303d3

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/lib/elements/CompetitorScrambleDisplay.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export class CompetitorScrambleDisplay extends HTMLElement {
7474
if (typeof scrambleStringOrStrings === "string") {
7575
this.classList.remove("show-multi");
7676
this.querySelector("twisty-player").alg = scrambleStringOrStrings;
77+
this.querySelector("twisty-player").timestamp = "end";
7778
multiElem.hidden = true;
7879
} else {
7980
this.classList.add("show-multi");
@@ -114,6 +115,7 @@ export class CompetitorScrambleDisplay extends HTMLElement {
114115
);
115116
this.querySelector("twisty-player").alg =
116117
this.#currentSubScrambleStrings[this.#currentSubScrambleIndex];
118+
this.querySelector("twisty-player").timestamp = "end";
117119
this.querySelector(".multi .current-sub-scramble-num").textContent = `${
118120
this.#currentSubScrambleIndex + 1
119121
}`;

src/lib/elements/MultiBlindGridDisplay.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ class MultiBlindGridDisplay extends HTMLElement {
5252
this.setNumColumnsAndRows(numCols, numRows);
5353
for (const [i, scramble] of scrambles.entries()) {
5454
this.#subScrambleElems[i].alg = scramble;
55+
this.#subScrambleElems[i].timestamp = "end";
5556
}
5657
}
5758

0 commit comments

Comments
 (0)