From a6cd8e7c85fc393ae7bb5cade952f938f0a57d2e Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Fri, 27 Sep 2013 08:17:29 -0700 Subject: [PATCH] Only reposition hidden input when editor has focus --- src/editor.coffee | 1 + 1 file changed, 1 insertion(+) diff --git a/src/editor.coffee b/src/editor.coffee index 028655cfd..f09e40935 100644 --- a/src/editor.coffee +++ b/src/editor.coffee @@ -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')