Commit d1472579 authored by Sebastien Robin's avatar Sebastien Robin

core (live_test): automatic refresh was sometimes not working

The script though that user was scrolling the test output while in reality we just
add a tiny difference of 0.5 pixel.
parent 58a4a83d
......@@ -29,8 +29,8 @@
// if the user scrolls in the window we do not want it to be updated.
// so set paused flag to false
function scrollFunction() {
paused = data_textarea.scrollHeight - data_textarea.scrollTop !==
data_textarea.clientHeight;
paused = (data_textarea.scrollHeight - data_textarea.scrollTop) >
(data_textarea.clientHeight + 1);
// if the service was paused when the tests are finished,
// set continue_loop to false
if (!paused && !tests_still_running) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment