           expect(horizontalScrollbarNode.scrollLeft).toBe 0
 
           componentNode.dispatchEvent(new WheelEvent('mousewheel', wheelDeltaX: -15, wheelDeltaY: -5))
-
-        waitsForAnimationFrame()
+          waitsForAnimationFrame()
 
         runs ->
           expect(verticalScrollbarNode.scrollTop).toBe 10


        # scroll to the bottom in one huge event
        componentNode.dispatchEvent(new WheelEvent('mousewheel', wheelDeltaX: 0, wheelDeltaY: -3000))

      waitsForAnimationFrame()

      runs ->
        maxScrollTop = wrapperNode.getScrollTop()

        it "selects the rows between the start and end of the drag", ->
          gutterNode.dispatchEvent(buildMouseEvent('mousedown', clientCoordinatesForScreenRowInGutter(6), metaKey: true))
          gutterNode.dispatchEvent(buildMouseEvent('mousemove', clientCoordinatesForScreenRowInGutter(4), metaKey: true))
          waitsForAnimationFrame()

          runs ->
