Slow the scroll speed

This commit is contained in:
Ben Ogle
2014-06-09 17:20:31 -07:00
parent d4ae3ac548
commit ec07cb9524

View File

@@ -425,10 +425,10 @@ EditorComponent = React.createClass
{wheelDeltaX, wheelDeltaY} = event
if Math.abs(wheelDeltaX) > Math.abs(wheelDeltaY)
# Scrolling horizontally
@pendingHorizontalScrollDelta -= wheelDeltaX
@pendingHorizontalScrollDelta -= Math.round(wheelDeltaX * .4)
else
# Scrolling vertically
@pendingVerticalScrollDelta -= wheelDeltaY
@pendingVerticalScrollDelta -= Math.round(wheelDeltaY * .4)
@mouseWheelScreenRow = @screenRowForNode(event.target)
@clearMouseWheelScreenRowAfterDelay ?= debounce(@clearMouseWheelScreenRow, @mouseWheelScreenRowClearDelay)
@clearMouseWheelScreenRowAfterDelay()