Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- row.on Events.DragEnd, (event, row) ->
- if row.x < -row.width or row.x > screenWidth
- container.removeSubLayer row
- row.destroy()
- for sibling, i in container.subLayers
- sibling.animateStop()
- sibling.animate
- properties: {y: i*itemHeight-1}
- curve: "spring(400,100,0)"
- time: 0.33
- else
- row.animate
- properties: {x:0}
- curve: "spring(400,100,0)"
- time: 0.33
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement