Start using TextEditorPresenter in LinesComponent

Removed shouldComponentUpdate because we will always update the
component manually once this is done, but I don’t want to accidentally
prevent the component from updating during the conversion process.

This commit has a failing spec due to the presenter not accounting for
individual character widths.
This commit is contained in:
Nathan Sobo
2015-01-19 16:41:11 -07:00
parent a3fb8b3aaa
commit 20bb14da81
2 changed files with 72 additions and 94 deletions

View File

@@ -720,6 +720,7 @@ TextEditorComponent = React.createClass
onScrollTopChanged: ->
@scrollingVertically = true
@presenter?.setScrollTop(@props.editor.getScrollTop())
@requestUpdate()
@onStoppedScrollingAfterDelay ?= debounce(@onStoppedScrolling, 200)
@onStoppedScrollingAfterDelay()