layer.draggable.direction < string>

Current dragging direction. Returns "up", "down", "left" or "right". (Read-only)
译:当前拖动方向。返回“上”,“下”,“左”或“右”。(只读)

layerA = new Layer
layerA.draggable.enabled = true

# Print the current direction 
layerA.on Events.DragMove, ->
    print layerA.draggable.direction

results matching ""

    No results matching ""