From 31abd7247469886ceec1ac613821b71746637c01 Mon Sep 17 00:00:00 2001 From: Andreas Preikschat Date: Tue, 5 Mar 2013 11:02:41 +0100 Subject: [PATCH] minimize the time 'nothing' is shown on the screen --- openlp/core/lib/htmlbuilder.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openlp/core/lib/htmlbuilder.py b/openlp/core/lib/htmlbuilder.py index 55551b223..16ef12547 100644 --- a/openlp/core/lib/htmlbuilder.py +++ b/openlp/core/lib/htmlbuilder.py @@ -170,7 +170,9 @@ sup { text.innerHTML = new_text; return; } - text.style.opacity = '0'; + // Fade text out. 0.2 to minimize the time "nothing" is shown on the screen. + text.style.opacity = '0.2'; + // Fade new text in after the old text has finished fading out. timer = window.setTimeout(function(){_show_text(text, new_text)}, 400); } @@ -180,7 +182,7 @@ sup { */ text.innerHTML = new_text; text.style.opacity = '1'; - window.setTimeout(function(){timer = null;}, 350); + window.setTimeout(function(){timer = null;}, 400); } function show_text_complete(){