mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-06 05:43:47 +08:00
fixed line trying to scroll when there are no elements to be hidden. fixes #252
This commit is contained in:
parent
d208013aa5
commit
6b5faeb6c0
1 changed files with 1 additions and 1 deletions
|
@ -3461,7 +3461,7 @@ $(document).keydown((event) => {
|
|||
const wordHeight = $(document.querySelector(".word")).outerHeight(
|
||||
true
|
||||
);
|
||||
if (config.smoothLineScroll) {
|
||||
if (config.smoothLineScroll && toHide.length > 0) {
|
||||
lineTransition = true;
|
||||
$("#words").prepend(
|
||||
`<div class="smoothScroller" style="position: fixed;height:${wordHeight}px;width:100%"></div>`
|
||||
|
|
Loading…
Reference in a new issue