Add animations to history navigation; fix animation continuation on navigate.
This commit is contained in:
parent
82f8c83b22
commit
c91281ed94
@ -1091,6 +1091,8 @@ const INTERFACE = {
|
||||
INTERFACE_DATA.Animate.play = play;
|
||||
INTERFACE_DATA.Animate.piece = piece;
|
||||
INTERFACE_DATA.Animate.target = target;
|
||||
} else {
|
||||
INTERFACE_DATA.Animate.play = null;
|
||||
}
|
||||
INTERFACE_DATA.replay_turn = turn;
|
||||
|
||||
|
@ -584,12 +584,12 @@ const SCENES = {
|
||||
UI.button("◀", () => { INTERFACE.replay_first(); }),
|
||||
UI.button("◁", () => { INTERFACE.replay_prev(); }),
|
||||
ind_turn,
|
||||
UI.button("▷", () => { INTERFACE.replay_next(); }),
|
||||
UI.button("▷", () => { INTERFACE.replay_next(true); }),
|
||||
UI.button("▶", () => { INTERFACE.replay_last(); }),
|
||||
]
|
||||
);
|
||||
|
||||
let slider = UI.slider("turn-slider", (event) => { INTERFACE.replay_jump(event.target.value); });
|
||||
let slider = UI.slider("turn-slider", (event) => { INTERFACE.replay_jump(event.target.value, true); });
|
||||
slider.setAttribute("min", "0");
|
||||
slider.setAttribute("max", "0");
|
||||
MAIN.appendChild(UI.div([ slider ], "turn-slider-padding"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user