Skip to content
This repository was archived by the owner on Jun 25, 2024. It is now read-only.

Commit 4c0e74e

Browse files
authored
Merge pull request #14 from legalthings/always-update-scale
Always update the scale property of the scope
2 parents 45a8fa2 + df28531 commit 4c0e74e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/angular-pdfjs-viewer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@
461461
var pdfViewer = PDFViewerApplication.pdfViewer;
462462

463463
if (pdfViewer) {
464-
if ($scope.scale && $scope.scale !== pdfViewer.currentScale) {
464+
if ($scope.scale !== pdfViewer.currentScale) {
465465
loaded = {};
466466
numLoaded = 0;
467467
$scope.scale = pdfViewer.currentScale;

src/angular-pdfjs-viewer.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
var pdfViewer = PDFViewerApplication.pdfViewer;
9393

9494
if (pdfViewer) {
95-
if ($scope.scale && $scope.scale !== pdfViewer.currentScale) {
95+
if ($scope.scale !== pdfViewer.currentScale) {
9696
loaded = {};
9797
numLoaded = 0;
9898
$scope.scale = pdfViewer.currentScale;

0 commit comments

Comments
 (0)