Skip to main content
Version: v1.0

hmUI.setLayerScrolling(enable)

Set scrolling for the default layer.

This interface sets the scrolling (continuous scrolling) of the default layer of the js widget, with a lower priority than setScrollView, which sets the scrolling by page. If the former is turned on, the former takes precedence.

Type

(enable: boolean) => void

Parameters

ParameterDescriptionType
enabletrue to set slidable.boolean

Code example

hmUI.setLayerScrolling(false) //Turn off scrolling for the default layer.