mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Properly disable nextTick when calling requestAnimationFrame
My previous commit was nonsense because it set the ::performSyncUpdates flag back to false before the animation frame callback ever got fired. /cc again @benogle
This commit is contained in:
@@ -217,8 +217,9 @@ EditorComponent = React.createClass
|
||||
requestAnimationFrame: (fn) ->
|
||||
prevPerformSyncUpdates = @performSyncUpdates
|
||||
@performSyncUpdates = true
|
||||
requestAnimationFrame(fn)
|
||||
@performSyncUpdates = prevPerformSyncUpdates
|
||||
requestAnimationFrame =>
|
||||
fn()
|
||||
@performSyncUpdates = prevPerformSyncUpdates
|
||||
|
||||
getRenderedRowRange: ->
|
||||
{editor, lineOverdrawMargin} = @props
|
||||
|
||||
Reference in New Issue
Block a user