I tried window.scrollTo([0, 1000])
but Always back to top.
Another one tried window.scroll([0, 1000])
.
scroll is keeping.
I wanted it.
Why window.scrollTo
?
I tried window.scrollTo([0, 1000])
but Always back to top.
Another one tried window.scroll([0, 1000])
.
scroll is keeping.
I wanted it.
Why window.scrollTo
?
For further actions, you may consider blocking this person and/or reporting abuse
Aleksey Nagovitsyn -
sister maria Monahan -
Ashutosh Kumar -
Vault Developer -
Top comments (3)
The issue you may be running into is that both
scroll
andscrollTo
take an x-coord and a y-coord independently, not anArray
.Nice, I tried to figure this out but I got caught up in the syntax, too.
I see... I I misunderstood.
Thank you.