Switch back to fadeTo rather than fadeIn/fadeOut
This commit is contained in:
parent
dffbe2bfdf
commit
0ad3c062bb
@ -39,7 +39,7 @@ function _updateQA(html, fadeTime, onupdate, onshown) {
|
|||||||
var qa = $("#qa");
|
var qa = $("#qa");
|
||||||
|
|
||||||
// fade out current text
|
// fade out current text
|
||||||
new Promise((resolve) => qa.fadeOut(fadeTime, () => resolve()))
|
new Promise((resolve) => qa.fadeTo(fadeTime, 0, () => resolve()))
|
||||||
// update text
|
// update text
|
||||||
.then(() => {
|
.then(() => {
|
||||||
try {
|
try {
|
||||||
@ -65,7 +65,7 @@ function _updateQA(html, fadeTime, onupdate, onshown) {
|
|||||||
})
|
})
|
||||||
)
|
)
|
||||||
// and reveal when processing is done
|
// 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(() => _runHook(onShownHook))
|
||||||
.then(() => (_updatingQA = false));
|
.then(() => (_updatingQA = false));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user