Skip to content

Commit

Permalink
Update 9_renderer.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fohristiwhirl committed Jun 13, 2019
1 parent 303e789 commit 5177d72
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion 9_renderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ function make_renderer() {
renderer.mousey = null; // Raw mouse Y on the canvas, e.g. between 0 and 640.
renderer.one_click_moves = New2DArray(8, 8); // 2D array of [x][y] --> move string or null.
renderer.movelist_connections = null; // List of objects telling us what movelist clicks go to what nodes.
renderer.movelist_connections_version = -1; //
renderer.movelist_connections_version = -1; // Set equal to total_tree_changes when movelist_connections changes.
renderer.last_tick_highlight_dest = null; // Used to skip redraws.

renderer.info_table = NewInfoTable(); // Holds info about the engine evaluations.
Expand Down Expand Up @@ -660,6 +660,10 @@ function make_renderer() {
movelist.scrollTop = bottom - movelist.offsetHeight;
}

} else if (!renderer.node.parent) {

movelist.scrollTop = 0;

}
};

Expand Down

0 comments on commit 5177d72

Please sign in to comment.