mirror of
https://github.com/overleaf/overleaf.git
synced 2024-09-16 02:52:31 -04:00
Make sure gotoLine works when changing session
This commit is contained in:
parent
6212b1c375
commit
088d27f22b
3 changed files with 1 additions and 3 deletions
|
@ -9,7 +9,6 @@ define [
|
||||||
sharejs_doc: null
|
sharejs_doc: null
|
||||||
open_doc_id: null
|
open_doc_id: null
|
||||||
opening: true
|
opening: true
|
||||||
gotoLine: null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@$scope.$on "entity:selected", (event, entity) =>
|
@$scope.$on "entity:selected", (event, entity) =>
|
||||||
|
|
|
@ -33,7 +33,6 @@ define [
|
||||||
highlights: "="
|
highlights: "="
|
||||||
text: "="
|
text: "="
|
||||||
readOnly: "="
|
readOnly: "="
|
||||||
gotoLine: "="
|
|
||||||
annotations: "="
|
annotations: "="
|
||||||
navigateHighlights: "="
|
navigateHighlights: "="
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ define [], () ->
|
||||||
if value?
|
if value?
|
||||||
setTimeout () =>
|
setTimeout () =>
|
||||||
@gotoLine(value)
|
@gotoLine(value)
|
||||||
, 0
|
, 10 # Hack: Must happen after @gotoStoredPosition
|
||||||
|
|
||||||
storeScrollTopPosition: (session) ->
|
storeScrollTopPosition: (session) ->
|
||||||
if @doc_id?
|
if @doc_id?
|
||||||
|
|
Loading…
Reference in a new issue