input.scrollLeft = input.scrollWidth
This commit is contained in:
parent
1b2ae13992
commit
20850d9793
1
index.js
1
index.js
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user