mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Merge pull request #845 from hgiesel/answerfix
Switch back to fadeTo rather than fadeIn/fadeOut
This commit is contained in:
commit
6967c71aad
1 changed files with 2 additions and 2 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue