layer.draggable.overdragScale < number>

Set the dragging resistance when dragging beyond constraints. The scale is defined with a number between 0 and 1. The default value is 0.5.
译:拖动超出限制时设置的拖动阻力。刻度与0和1之间的数的默认值是0.5所定义。

layerA = new Layer
layerA.draggable.enabled = true

layerA.draggable.constraints =
    x: 0
    y: 0
    width: 200
    height: 200

# Increase resistance when dragging beyond constraints 
layerA.draggable.overdragScale = 0.25

results matching ""

    No results matching ""