scroll.velocity < number>

Current scroll speed and direction in pixels per second at this current time.
译:在当前时间内每秒钟的像素的当前滚动速度和方向。

scroll = new ScrollComponent

# On scroll, print the velocity 
scroll.on Events.Scroll, ->
    print scroll.velocity

results matching ""

    No results matching ""