[opensuse-buildservice] [PATCH] Fast autoscroll in webclient build log
This patch causes autoscroll to jump straight to the bottom instead of scrolling in small increments. This makes scrolling faster, especially in browsers that scroll "smoothly". Index: obs/webclient/app/views/package/live_build_log.rhtml =================================================================== --- obs.orig/webclient/app/views/package/live_build_log.rhtml +++ obs/webclient/app/views/package/live_build_log.rhtml @@ -28,7 +28,7 @@ function start_autoscroll() { autoscroll(); } function autoscroll() { - window.scrollBy( 0,50 ); + window.scrollTo( 0, document.getElementById('log_space').clientHeight ); scrolldelay = setTimeout( 'autoscroll()',100 ); } function stop_autoscroll() { -- James Oakley jfunk@funktronics.ca --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
Hi James, Am Montag, 19. März 2007 20:46 schrieb James Oakley:
This patch causes autoscroll to jump straight to the bottom instead of scrolling in small increments. This makes scrolling faster, especially in browsers that scroll "smoothly". [... patch ...]
Applied in rev. 1480 - thanks for your contribution! -- David Mayr, http://davey.de openSUSE LINUX, http://opensuse.de --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-buildservice+help@opensuse.org
participants (2)
-
David Mayr
-
James Oakley