From: Steinar H. Gunderson Date: Wed, 12 Jul 2023 15:03:44 +0000 (+0200) Subject: Drop the fade-in on initial load. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=424c13e8596a1674ee2c12d75c4b168f93ba89e4 Drop the fade-in on initial load. --- diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index e14fffa..c2c9d06 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -1987,7 +1987,8 @@ function update_displayed_line() { function set_board_position(new_fen) { board_is_animating = true; let old_fen = board.fen(); - board.position(new_fen); + let animate = old_fen !== '8/8/8/8/8/8/8/'; + board.position(new_fen, animate); if (board.fen() === old_fen) { board_is_animating = false; }