mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01: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:
@@ -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
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user