Merge pull request #5 from VE-FORBRYDERNE/editable-chunks

Scroll down on submit
This commit is contained in:
henk717
2021-08-24 01:22:57 +02:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@ -850,6 +850,10 @@ $(document).ready(function(){
}, 5);
}
newly_loaded = false;
} else if(msg.cmd == "scrolldown") {
setTimeout(function () {
$('#gamescreen').animate({scrollTop: $('#gamescreen').prop('scrollHeight')}, 1000);
}, 5);
} else if(msg.cmd == "setgamestate") {
// Enable or Disable buttons
if(msg.data == "ready") {