From 0ad3c062bb590ae4f9ef2a2e9bdb94977fe58e1c Mon Sep 17 00:00:00 2001 From: Henrik Giesel Date: Wed, 9 Dec 2020 14:17:34 +0100 Subject: [PATCH] Switch back to fadeTo rather than fadeIn/fadeOut --- qt/aqt/data/web/js/reviewer.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/qt/aqt/data/web/js/reviewer.ts b/qt/aqt/data/web/js/reviewer.ts index eb3a27540..d1e6c8c29 100644 --- a/qt/aqt/data/web/js/reviewer.ts +++ b/qt/aqt/data/web/js/reviewer.ts @@ -39,7 +39,7 @@ function _updateQA(html, fadeTime, onupdate, onshown) { var qa = $("#qa"); // fade out current text - new Promise((resolve) => qa.fadeOut(fadeTime, () => resolve())) + new Promise((resolve) => qa.fadeTo(fadeTime, 0, () => resolve())) // update text .then(() => { try { @@ -65,7 +65,7 @@ function _updateQA(html, fadeTime, onupdate, onshown) { }) ) // and reveal when processing is done - .then(() => new Promise((resolve) => qa.fadeIn(fadeTime, () => resolve()))) + .then(() => new Promise((resolve) => qa.fadeTo(fadeTime, 1, () => resolve()))) .then(() => _runHook(onShownHook)) .then(() => (_updatingQA = false)); }