input.scrollLeft = input.scrollWidth

This commit is contained in:
Nato Boram 2021-10-25 13:45:46 -04:00
parent 1b2ae13992
commit 20850d9793
No known key found for this signature in database
GPG Key ID: 478E3C64BF88AFFA

View File

@ -97,6 +97,7 @@ async function write() {
for (const letter of query.search) { for (const letter of query.search) {
await new Promise(resolve => setTimeout(resolve, Math.random() * 200 + 100)) await new Promise(resolve => setTimeout(resolve, Math.random() * 200 + 100))
input.value += letter input.value += letter
input.scrollLeft = input.scrollWidth
} }
} }