Mailinglist Archive: opensuse-buildservice (295 mails)

< Previous Next >
[opensuse-buildservice] [PATCH] Fast autoscroll in webclient build log
  • From: James Oakley <jfunk@xxxxxxxxxxxxxx>
  • Date: Mon, 19 Mar 2007 15:46:58 -0400
  • Message-id: <200703191646.58309.jfunk@xxxxxxxxxxxxxx>
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@xxxxxxxxxxxxxx
---------------------------------------------------------------------
To unsubscribe, e-mail: opensuse-buildservice+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-buildservice+help@xxxxxxxxxxxx

< Previous Next >
This Thread
Follow Ups