scroll.mouseWheelEnabled < boolean>
Enable or disable scrolling with mousewheel. Disabled by default. When set to true, layers can be scrolled both by dragging and with the mouse.
译:启用或禁用滚动鼠标滚轮。默认禁用。当设置为真,通过拖动用鼠标可以滚动层。
scroll = new ScrollComponent
width: 100
height: 100
# Allow scrolling with mouse
scroll.mouseWheelEnabled = true
layerA = new Layer
parent: scroll.content
image: "images/bg.png"
width: 100
height: 200