X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=www%2Fjs%2Fremoteglot.js;h=04bc1493c9f37a51bf39d05208181b1bb000b7c4;hp=cff91cee612020e1a4aac339973104fa7323105f;hb=9439a26fb0f61e6becaa8736fce4bafc61a4ba38;hpb=488afd56e06136adca91c49379e2e9c3aa330b73 diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index cff91ce..04bc149 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -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; }