layer.draggable.isBeyondConstraints < boolean>

See if the draggable layer is currently beyond its dragging constraints. (Read-only)
译:看看是否可拖动层目前是超出其拖动约束。 (只读)

layerA = new Layer
layerA.draggable.enabled = true

# Set dragging constraints 
layerA.draggable.constraints =
    x: 100
    y: 100
    width: 400
    height: 400

# On move, see if the layer is beyond constraints or not 
layerA.on Events.Move, ->
    print layerA.draggable.isBeyondConstraints

results matching ""

    No results matching ""