Line 466. $scope.$apply inside $digest
jdryg opened this issue · comments
Jim Drygiannakis commented
Sometimes when scrolling, updating the current page index inside $apply (line 466) reports an error. If I remove the $apply call, then the page isn't always updated!
Jim Drygiannakis commented
Fixed by returning the current page ID from renderAllVisiblePages and setting the scope var correctly depending on whether we are inside a $digest turn (onPDFScaleChanged) or a normal js turn ($element.bind("scroll")).