]> git.sesse.net Git - remoteglot/commitdiff
Drop the fade-in on initial load.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 12 Jul 2023 15:03:44 +0000 (17:03 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 12 Jul 2023 15:03:44 +0000 (17:03 +0200)
www/js/remoteglot.js

index e14fffa2b81394d6c63645182414e7ca1a142119..c2c9d0644e4303d1e447ef0653594b495054f0c4 100644 (file)
@@ -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;
        }