// true for scroll down, false for scroll up. var scrollDirection = core.randi(0,2); var textAreaHeight = document.getElementById('text-area').scrollHeight; var ...