Skip to content

Commit

Permalink
Merge pull request #14 from legalthings/always-update-scale
Browse files Browse the repository at this point in the history
Always update the scale property of the scope
  • Loading branch information
moesjarraf committed Jul 15, 2016
2 parents 45a8fa2 + df28531 commit 4c0e74e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/angular-pdfjs-viewer.js
Expand Up @@ -461,7 +461,7 @@
var pdfViewer = PDFViewerApplication.pdfViewer;

if (pdfViewer) {
if ($scope.scale && $scope.scale !== pdfViewer.currentScale) {
if ($scope.scale !== pdfViewer.currentScale) {
loaded = {};
numLoaded = 0;
$scope.scale = pdfViewer.currentScale;
Expand Down
2 changes: 1 addition & 1 deletion src/angular-pdfjs-viewer.js
Expand Up @@ -92,7 +92,7 @@
var pdfViewer = PDFViewerApplication.pdfViewer;

if (pdfViewer) {
if ($scope.scale && $scope.scale !== pdfViewer.currentScale) {
if ($scope.scale !== pdfViewer.currentScale) {
loaded = {};
numLoaded = 0;
$scope.scale = pdfViewer.currentScale;
Expand Down

0 comments on commit 4c0e74e

Please sign in to comment.