scroll.direction < string>
Current scrolling direction. Returns "up", "down", "left", or "right". The scrolling direction is the inverse of the direction of the drag action: when dragging downwards, you're effectively scrolling upwards. (Read-only)
译:当前滚动方向。上,下,左,或右。滚动方向是拖动操作方向的逆:当拖动向下时,可以有效地向上滚动。(只读)
scroll = new ScrollComponent
# On scroll, print the direction
scroll.on Events.Scroll, ->
print scroll.direction