mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-17 02:34:05 +00:00
Merge pull request #2741 from overleaf/hb-apply-please-scroll-pdf
Force pdf viewer to check watches on clickable link GitOrigin-RevId: 364da514147751c4c1f69491a5070c94bf94aece
This commit is contained in:
parent
c62dd1cacb
commit
310f7a7c60
1 changed files with 4 additions and 3 deletions
|
@ -323,11 +323,12 @@ define([
|
|||
this.setPdfPosition = function(page, position) {
|
||||
// console.log 'required pdf Position is', position
|
||||
return this.computeOffset(page, position).then(function(offset) {
|
||||
$scope.pleaseScrollTo = offset
|
||||
return ($scope.position = position)
|
||||
return $scope.$apply(() => {
|
||||
$scope.pleaseScrollTo = offset
|
||||
$scope.position = position
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
return this
|
||||
})
|
||||
|
||||
|
|
Loading…
Reference in a new issue