minor fixes

This commit is contained in:
Ilya Kantor 2022-08-14 15:26:02 +03:00
parent cbd7d7831c
commit 72aa4f0b97
2 changed files with 3 additions and 1 deletions

View file

@ -29,7 +29,7 @@ And stood awhile in thought.
timing: bounce,
draw: function(progress) {
let result = (to - from) * progress + from;
textArea.value = text.substr(0, Math.ceil(result))
textArea.value = text.slice(0, Math.ceil(result))
}
});
}