mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-04 22:22:52 +00:00
updated comments
This commit is contained in:
parent
7fcae775ee
commit
cb4f6391a2
2 changed files with 3 additions and 1 deletions
|
@ -47,6 +47,8 @@ define [
|
|||
done = () =>
|
||||
if options.gotoLine?
|
||||
# allow Ace to display document before moving, delay until next tick
|
||||
# added delay to make this happen later that gotoStoredPosition in
|
||||
# CursorPositionManager
|
||||
setTimeout () =>
|
||||
@$scope.$broadcast "editor:gotoLine", options.gotoLine, options.gotoColumn
|
||||
,0
|
||||
|
|
|
@ -55,5 +55,5 @@ define [], () ->
|
|||
|
||||
gotoLine: (line, column) ->
|
||||
@editor.gotoLine(line, column)
|
||||
@editor.scrollToLine(line,true,true)
|
||||
@editor.scrollToLine(line,true,true) # centre and animate
|
||||
@editor.focus()
|
||||
|
|
Loading…
Reference in a new issue