 {Layer} = require "../Layer"
+{Events} = require "../Events"
 
 """
 ScrollComponent

		@content.draggable.enabled = true
		@content.draggable.momentum = true
		

		@_contentInset = {top:50, right:100, bottom:100, left:0}
		@scrollWheelSpeedMultiplier = .33

		@content.on "change:subLayers", @_updateContent
		@content.draggable.on Events.DragDidMove, (event) => @emit(Events.Scroll, event)

		@_updateContent()
		@_enableNativeScrollCapture()

	_updateContent: =>



		super

		@_contentInset = {top:0, right:0, bottom:0, left:0}
		@scrollWheelSpeedMultiplier = .33

		# Set up content layer
		@content = new Layer 
			width: @width
			height: @height
