mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Update cursors when the line height in pixels changes
This commit is contained in:
@@ -33,8 +33,8 @@ CursorsComponent = React.createClass
|
||||
@stopBlinkingCursors()
|
||||
|
||||
shouldComponentUpdate: (newProps, newState) ->
|
||||
not isEqualForProperties(newProps, @props, 'cursorScreenRanges', 'scrollTop', 'scrollLeft') or
|
||||
not newState.blinkOff is @state.blinkOff
|
||||
not newState.blinkOff is @state.blinkOff or
|
||||
not isEqualForProperties(newProps, @props, 'cursorScreenRanges', 'scrollTop', 'scrollLeft', 'lineHeightInPixels')
|
||||
|
||||
componentWillUpdate: (newProps) ->
|
||||
@pauseCursorBlinking() if @props.cursorScreenRanges and not isEqual(newProps.cursorScreenRanges, @props.cursorScreenRanges)
|
||||
|
||||
Reference in New Issue
Block a user