]> git.sesse.net Git - remoteglot/commitdiff
Fix PV walking by click.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 21 Mar 2016 22:52:23 +0000 (23:52 +0100)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Mon, 21 Mar 2016 22:52:23 +0000 (23:52 +0100)
www/js/remoteglot.js

index cff91cee612020e1a4aac339973104fa7323105f..04bc1493c9f37a51bf39d05208181b1bb000b7c4 100644 (file)
@@ -1866,7 +1866,7 @@ var onSnapEnd = function(source, target) {
 
        if (current_display_line &&
            current_display_move < current_display_line.pretty_pv.length - 1 &&
-           current_display_line.pretty_pv[current_display_move] === move.san) {
+           current_display_line.pretty_pv[current_display_move + 1] === move.san) {
                next_move();
                return;
        }