-
-
Save daneden/f5a0826168ea9626af3091d5b08c7911 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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