From: Steinar H. Gunderson Date: Mon, 21 Mar 2016 22:52:23 +0000 (+0100) Subject: Fix PV walking by click. X-Git-Url: https://git.sesse.net/?p=remoteglot;a=commitdiff_plain;h=9439a26fb0f61e6becaa8736fce4bafc61a4ba38 Fix PV walking by click. --- 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; }