                 labelElement =
                     $("<div class='jumpy label'>#{keyLabel}</div>")
                         .css
-                            left: pixelPosition.left - editor.getScrollLeft()
-                            top: pixelPosition.top - editor.getScrollTop()
+                            left: pixelPosition.left - scrollLeft
+                            top: pixelPosition.top - scrollTop
                             fontSize: fontSize
                 if highContrast
                     labelElement.addClass 'high-contrast'

                .append '<div class="jumpy jumpy-label-container"></div>'
            labelContainer = overlayer.querySelector '.jumpy-label-container'

            drawLabels = (column, labelContainer) =>
                return unless nextKeys.length

                keyLabel = nextKeys.shift()

                    .append labelElement

            [firstVisibleRow, lastVisibleRow] = editor.getVisibleRowRange()
            scrollLeft = editor.getScrollLeft()
            scrollTop = editor.getScrollTop()
            for lineNumber in [firstVisibleRow...lastVisibleRow]
                lineContents = editor.lineTextForScreenRow(lineNumber)
                if editor.isFoldedAtScreenRow(lineNumber)
                    drawLabels 0, labelContainer, scrollLeft, scrollTop
                else
                    while ((word = wordsPattern.exec(lineContents)) != null)
                        drawLabels word.index, labelContainer,
                            scrollLeft, scrollTop

            @initializeClearEvents(editor, editorView)

