From 0143622362d88dda8e4e651248972cad5f1bdaf7 Mon Sep 17 00:00:00 2001 From: Miodec Date: Sat, 5 Jun 2021 13:29:34 +0100 Subject: [PATCH] hiding the keymap in the middle of the animation to avoid the page jumping while finishing a test --- src/js/test/test-logic.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/js/test/test-logic.js b/src/js/test/test-logic.js index c90fcb404..3e971d4d6 100644 --- a/src/js/test/test-logic.js +++ b/src/js/test/test-logic.js @@ -1007,7 +1007,6 @@ export function finish(difficultyFailed = false) { PbCrown.hide(); LiveAcc.hide(); TimerProgress.hide(); - Keymap.hide(); Funbox.activate("none", null); if ( @@ -1883,6 +1882,8 @@ export function finish(difficultyFailed = false) { TestUI.toggleResultWords(); } $("#testModesNotice").addClass("hidden"); + }, () => { + Keymap.hide(); }); }