X-Git-Url: https://git.sesse.net/?p=remoteglot;a=blobdiff_plain;f=www%2Fjs%2Fremoteglot.js;h=44f6c79a9d26cc96b3964fb731878c889eb820e9;hp=26abd4ae14a382fe293975cdf3a757b087b2b793;hb=a22edeb9b12b364fd447ba5b5eaf4125755ebd14;hpb=7917c883f010cb21de584cc7d69acb7489523b4c diff --git a/www/js/remoteglot.js b/www/js/remoteglot.js index 26abd4a..44f6c79 100644 --- a/www/js/remoteglot.js +++ b/www/js/remoteglot.js @@ -1973,6 +1973,10 @@ var onSnapEnd = function(source, target) { // this move, then select that. Note that this gives us a good priority // order (history first, then PV, then multi-PV lines). for (var i = 0; i < display_lines.length; ++i) { + if (i == 1 && current_display_line) { + // Do not choose PV if not on it. + continue; + } var line = display_lines[i]; if (line.pv[line.start_display_move_num] === move.san) { show_line(i, 0);