 			y: -contentFrame.height + @height
 			width: 	contentFrame.width  + contentFrame.width  - @width
 			height: contentFrame.height + contentFrame.height - @height
-
-	_onMouseWheel: (event) =>
-
-		# TODO: Maybe this needs to move to draggable, I'm not sure.
-		# In any case this should go through the eventBuffer from draggable
-		# so we get sensible velocity and angles back.
-
-		@content.animateStop()
-		
-		{minX, maxX, minY, maxY} = @content.draggable._calculateConstraints(
-			@content.draggable.constraints)
-		
-		point = 
-			x: @content.x + (event.wheelDeltaX * @scrollWheelSpeedMultiplier * @speedX)
-			y: @content.y + (event.wheelDeltaY * @scrollWheelSpeedMultiplier * @speedY)
-		
-		clampedPoint =
-			x: Utils.clamp(point.x, minX, maxX)
-			y: Utils.clamp(point.y, minY, maxY)
-
-
-		# TODO: We need to determine wether this scrollwheel is coming from a mouse
-		# or trackpad. There does not seem to be a way to do that. Also, the trackpad
-		# emulates it's own physics and you cannot distinguish emulated events from 
-		# real finger-generated events.
-
-		# I was thinking to maybe capture scroll events in a separate invisible layer
-		# with the same content height and to send them back here. I know that is how
-		# Facebook used to do it.
-
-		@content.draggable.emit(Events.DragWillMove, event)
-		@content.point = clampedPoint
-
-		event.preventDefault()
-
-		@content.draggable._eventBuffer.push
-			x: event.wheelDeltaX
-			y: event.wheelDeltaY
-			t: Date.now()
-
-		@content.draggable.emit(Events.DragMove, event)
-		@content.draggable.emit(Events.DragDidMove, event)
 
 	@define "scroll",
 		exportable: true

		@content.draggable.momentum = true
		@_updateContent()

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

		@content.on("change:subLayers", @_updateContent)
		@on("mousewheel", @_onMouseWheel)

		@content.draggable.on Events.DragDidMove, (event) -> @emit(Events.Scroll, event)

	_updateContent: =>


ScrollComponent

content <Layer>
contentSize <{width:n, height:n}>
contentInset <{top:n, right:n, bottom:n, left:n}> TODO
contentOffset <{x:n, y:n}> TODO
scrollFrame <{x:n, y:n, width:n, height:n}>
scrollPoint <{x:n, y:n}>
scrollHorizontal <bool>
