 			backgroundColor: "black"
 			visible: false
 
-		@background.onTap =>
-			@back()
-
 		# Screen.onEdgeSwipeLeftEnd (e) =>
 		# 	@back()
 


		@_stack.push({layer:layer, transition:transition})

	dialog: (layer)->
		@push(layer, Transitions.dialog, true, false)

	modal: (layer)->
		@push(layer, Transitions.modal, true, false)

	back: ->
		return unless @previous
		previous = @_stack.pop()
		previous?.transition.back()

	@define "stack",
		get: -> _.clone(@_stack)


		layer.point = Utils.pointZero()

		scroll = new ScrollComponent
		scroll.name = "scroll"
		scroll.size = @size
		scroll.backgroundColor = @backgroundColor
		scroll.scrollHorizontal = layer.width > @width
		scroll.scrollVertical = layer.height > @height
		layer.parent = scroll.content

		layer[NavComponentLayerScrollKey] = scroll

