mirror of
https://github.com/atom/atom.git
synced 2026-01-22 13:28:01 -05:00
Put the hidden input component on its own layer
This avoids combining its repaint with the scrollbar's cursor position when the cursor moves.
This commit is contained in:
@@ -21,6 +21,9 @@ EditorScrollViewComponent = React.createClass
|
||||
{cursorBlinkPeriod, cursorBlinkResumeDelay, cursorsMoved, onInputFocused, onInputBlurred} = @props
|
||||
|
||||
if @isMounted()
|
||||
inputStyle = @getHiddenInputPosition()
|
||||
inputStyle.WebkitTransform = 'translateZ(0)'
|
||||
|
||||
contentStyle =
|
||||
height: scrollHeight
|
||||
minWidth: scrollWidth
|
||||
@@ -30,7 +33,7 @@ EditorScrollViewComponent = React.createClass
|
||||
InputComponent
|
||||
ref: 'input'
|
||||
className: 'hidden-input'
|
||||
style: @getHiddenInputPosition()
|
||||
style: inputStyle
|
||||
onInput: @onInput
|
||||
onFocus: onInputFocused
|
||||
onBlur: onInputBlurred
|
||||
|
||||
Reference in New Issue
Block a user