-# A Floating Action Button interaction
-# Hold and drag to a menu item; upon release, perform action
+# A Floating Action Button interaction. User can either:
+# 1) Press on share, hold and drag to a menu item
+# 2) Simply Tap share
 
 layerBackground = new BackgroundLayer
 	backgroundColor: "white"

	second: {x: layerFacebook.x - 200, y: layerTwitter.y - 200, scale: 1, opacity: 1}
layerInsta.states.animationOptions =
	curve: "spring(200, 25, 20)"

# Convenience function for stepping through layer states
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
