mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-08 13:11:19 +08:00
live wpm will no longer animate when keymap is enabled
This commit is contained in:
parent
5cf2ef2663
commit
f832d73d40
1 changed files with 3 additions and 5 deletions
|
|
@ -965,10 +965,12 @@ function startCaretAnimation() {
|
|||
|
||||
function hideKeymap() {
|
||||
$(".keymap").addClass("hidden");
|
||||
$("#liveWpm").removeClass("lower");
|
||||
}
|
||||
|
||||
function showKeymap() {
|
||||
$(".keymap").removeClass("hidden");
|
||||
$("#liveWpm").addClass("lower");
|
||||
}
|
||||
|
||||
function flashPressedKeymapKey(key, correct) {
|
||||
|
|
@ -2477,11 +2479,7 @@ function showLiveWpm() {
|
|||
if (!config.showLiveWpm) return;
|
||||
if (!testActive) return;
|
||||
$("#liveWpm").css("opacity", config.timerOpacity);
|
||||
if (config.keymapMode !== "off") {
|
||||
$("#liveWpm").addClass("lower");
|
||||
} else {
|
||||
$("#liveWpm").removeClass("lower");
|
||||
}
|
||||
|
||||
// if (config.timerStyle === "text") {
|
||||
// $("#timerNumber").css("opacity", config.timerOpacity);
|
||||
// }
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue