]> git.sesse.net Git - remoteglot/commitdiff
Fix double-forwarding when clicking along a hash-probe line.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 25 Dec 2022 21:30:26 +0000 (22:30 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Sun, 25 Dec 2022 21:30:26 +0000 (22:30 +0100)
www/js/remoteglot.js

index b06a45ae2d82ff37b720b53087a7ae244da296bf..bac1ef9711cb882dc196c451912bb678c484d180 100644 (file)
@@ -2228,7 +2228,7 @@ let onSnapEnd = function(source, target) {
                }
                let line = display_lines[i];
                if (line.pv[line.start_display_move_num] === move.san) {
-                       show_line(i, line.start_display_move_num);
+                       show_line(i, 0);
                        return;
                }
        }