From 424c13e8596a1674ee2c12d75c4b168f93ba89e4 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 12 Jul 2023 17:03:44 +0200 Subject: [PATCH] Drop the fade-in on initial load. --- www/js/remoteglot.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; } -- 2.39.2