From d181aa1597ee875560ad52848b6092b59c48778d Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sun, 1 Jul 2018 22:01:41 +0200 Subject: interactor: fix some interface bugs --- interactor/game.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'interactor') diff --git a/interactor/game.js b/interactor/game.js index bf2b97f..a9ecf2e 100644 --- a/interactor/game.js +++ b/interactor/game.js @@ -143,7 +143,7 @@ function addMoveLog(player, mv, captures) { log.appendChild(tr); - tr.scrollIntoView(false); + document.getElementById("movelog_container").scrollTop = 99999999; } function addServerLog(msg) { @@ -201,6 +201,8 @@ function humanMove(mv) { return; } + document.getElementById("aifirst").classList.add("invisible"); + if (aiplayer == null) { aiplayer = -onturn; } -- cgit v1.2.3-70-g09d2