Skip to content

Instantly share code, notes, and snippets.

@daneden
Last active June 13, 2017 23:02
Show Gist options
  • Save daneden/f5a0826168ea9626af3091d5b08c7911 to your computer and use it in GitHub Desktop.
Save daneden/f5a0826168ea9626af3091d5b08c7911 to your computer and use it in GitHub Desktop.
yConstraint = 90
myCard = new Layer
height: 1000
width: Canvas.width
x: 0
y: yConstraint
myCard.draggable.enabled = true
myCard.draggable.horizontal = false
myCard.draggable.constraints =
y: yConstraint
height: 1000
myCard.onMove ->
print myCard.y
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment