 		
 # Snap back layerBox to its origin
 layerBox.on Events.DragEnd, ->
+	prevState = "DragEnd"
 	changeState()
 	layerBox.animate
 		properties: {

	
layerBox.draggable.enabled = true

layerBox.on Events.DragStart, ->
	changeState()



# Scale up item if finger is over it; scale others down if they were scaled up
layerBox.on Events.DragMove, (event) ->
	prevState = "DragMove"
# 	FB
	if this.y > (layerInsta.y + layerInsta.height) and this.x < layerFacebook.x + layerFacebook.width
		animFacebook.start() and onFacebook = 1 if onFacebook == 0 # Scale up layerFacebook
