Skip to content

Commit

Permalink
Remove references to TextEditor::scroll...
Browse files Browse the repository at this point in the history
  • Loading branch information
as-cii committed Sep 24, 2015
1 parent 1f81c63 commit 6673c89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/text-editor-component.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ class TextEditorComponent
inputNode.value = event.data if insertedRange

onVerticalScroll: (scrollTop) =>
return if @updateRequested or scrollTop is @editor.getScrollTop()
return if @updateRequested or scrollTop is @presenter.getScrollTop()

animationFramePending = @pendingScrollTop?
@pendingScrollTop = scrollTop
Expand All @@ -318,7 +318,7 @@ class TextEditorComponent
@presenter.commitPendingScrollTopPosition()

onHorizontalScroll: (scrollLeft) =>
return if @updateRequested or scrollLeft is @editor.getScrollLeft()
return if @updateRequested or scrollLeft is @presenter.getScrollLeft()

animationFramePending = @pendingScrollLeft?
@pendingScrollLeft = scrollLeft
Expand Down

0 comments on commit 6673c89

Please sign in to comment.