Closed qodeboy closed 7 years ago
Hello, is it possible to scroll baron programmatically? My use-case involves scrolling baron-enabled block when main page is scrolled.
Yes, you can! Just set scroller.scrollTop = x whenever you want to whatever you want position x.
scroller.scrollTop = x
x
It is actually not the baron, but native scroller property/ability. Baron just reacts on scrollTop change.
scrollTop
Hello, is it possible to scroll baron programmatically? My use-case involves scrolling baron-enabled block when main page is scrolled.