Only requestUpdate when scrolling stops if component is still mounted

Fixes #2566
This commit is contained in:
Nathan Sobo
2014-06-10 12:13:28 -06:00
parent 634c995a71
commit 562a047b9e

View File

@@ -518,6 +518,8 @@ EditorComponent = React.createClass
@onStoppedScrollingAfterDelay()
onStoppedScrolling: ->
return unless @isMounted()
@scrollingVertically = false
@mouseWheelScreenRow = null
@requestUpdate()