mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-06-02 05:41:33 +02:00
updated comments
This commit is contained in:
@@ -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
|
||||
|
||||
+1
-1
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user