fixed line trying to scroll when there are no elements to be hidden. fixes #252

This commit is contained in:
Jack 2020-08-07 20:56:53 +01:00
parent d208013aa5
commit 6b5faeb6c0

View file

@ -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>`