# ScrollViewContext.scrollTo(Object object)
Start from base library version 2.14.4. Please remaining backward compatible.
with Promise style call: Not supported
Mini Program plugin: Support
Scroll to specified position
# parameter
# Object object
attribute | type | Default values | Required | Introductions |
---|---|---|---|---|
top | number | no | Top distance | |
left | number | no | Left boundary distance | |
velocity | number | no | Initial velocity | |
duration | number | no | Scroll animation length | |
animated | boolean | no | Enable scrolling animation |