           wheelEvent = new WheelEvent('mousewheel', wheelDeltaX: 10, wheelDeltaY: 0)
           Object.defineProperty(wheelEvent, 'target', get: -> lineNode)
           componentNode.dispatchEvent(wheelEvent)
-
-        waitsForAnimationFrame()
+          waitsForAnimationFrame()
 
         runs ->
           expect(component.presenter.mouseWheelScreenRow).toBe null

          expect(horizontalScrollbarNode.scrollLeft).toBe 0

          componentNode.dispatchEvent(new WheelEvent('mousewheel', wheelDeltaX: -15, wheelDeltaY: -5))

        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()
