mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
add extra delay to gotoLine event
This commit is contained in:
parent
9a399d3dd3
commit
daa1d80865
1 changed files with 5 additions and 2 deletions
|
@ -46,7 +46,10 @@ define [
|
||||||
|
|
||||||
done = () =>
|
done = () =>
|
||||||
if options.gotoLine?
|
if options.gotoLine?
|
||||||
|
# allow Ace to display document before moving, delay until next tick
|
||||||
|
setTimeout () =>
|
||||||
@$scope.$broadcast "editor:gotoLine", options.gotoLine, options.gotoColumn
|
@$scope.$broadcast "editor:gotoLine", options.gotoLine, options.gotoColumn
|
||||||
|
,0
|
||||||
|
|
||||||
if doc.id == @$scope.editor.open_doc_id and !options.forceReopen
|
if doc.id == @$scope.editor.open_doc_id and !options.forceReopen
|
||||||
@$scope.$apply () =>
|
@$scope.$apply () =>
|
||||||
|
|
Loading…
Reference in a new issue