# ScrollViewContext

Start from base library version 2.14.4. Please remaining backward compatible.

Enhance ScrollView Example, you can use the wx.createSelectorQuery of NodesRef.node Method gets. Only in scroll-view Component Open enhanced Property.

# attribute

# boolean scrollEnabled

Rolling switch

# boolean bounces

Set Rolling Boundary Elasticity (Only in iOS Coming into effect)

# boolean showScrollbar

Set whether to display scroll bars

# boolean pagingEnabled

Paging slide switch

# boolean fastDeceleration

Set rolling deceleration rate

# boolean decelerationDisabled

Cancel rolling inertia (Only in iOS Coming into effect)

# method

# ScrollViewContext.scrollTo(Object object)

Scroll to specified position

# ScrollViewContext.scrollIntoView(string selector)

Scroll to specified position

# sample code

wx.createSelectorQuery()
  .select('#scrollview')
  .node()
  .exec((res) => {
    const scrollView = res[0].node
    scrollView.scrollEnabled = false
  })