mirror of
https://github.com/atom/atom.git
synced 2026-02-15 17:15:24 -05:00
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:
@@ -720,6 +720,7 @@ TextEditorComponent = React.createClass
|
||||
|
||||
onScrollTopChanged: ->
|
||||
@scrollingVertically = true
|
||||
@presenter?.setScrollTop(@props.editor.getScrollTop())
|
||||
@requestUpdate()
|
||||
@onStoppedScrollingAfterDelay ?= debounce(@onStoppedScrolling, 200)
|
||||
@onStoppedScrollingAfterDelay()
|
||||
|
||||
Reference in New Issue
Block a user