Use scrollLeft so the editor is not scrolled to the left on focus in/out

This commit is contained in:
Ben Ogle
2013-10-09 16:44:05 -07:00
parent 017030fd60
commit 6faef08592

View File

@@ -739,7 +739,7 @@ class Editor extends View
false
bringHiddenInputIntoView: ->
@hiddenInput.css(top: @scrollTop() + 'px', left: 0)
@hiddenInput.css(top: @scrollTop() + 'px', left: @scrollLeft())
selectOnMousemoveUntilMouseup: ->
lastMoveEvent = null