X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=www%2Fjs%2Fremoteglot.js;fp=www%2Fjs%2Fremoteglot.js;h=c2c9d0644e4303d1e447ef0653594b495054f0c4;hp=e14fffa2b81394d6c63645182414e7ca1a142119;hb=424c13e8596a1674ee2c12d75c4b168f93ba89e4;hpb=66e4755548c69077058eecb08d907f59907bb2b4 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; }