mirror of
https://github.com/atom/atom.git
synced 2026-01-22 21:38:10 -05:00
Only reposition hidden input when editor has focus
This commit is contained in:
@@ -696,6 +696,7 @@ class Editor extends View
|
||||
|
||||
handleInputEvents: ->
|
||||
@on 'cursor:moved', =>
|
||||
return unless @isFocused
|
||||
cursorView = @getCursorView()
|
||||
@hiddenInput.offset(cursorView.offset()) if cursorView.is(':visible')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user