Skip to content

Commit

Permalink
fix: change pageNum when click goNext() or goPrevious() button
Browse files Browse the repository at this point in the history
  • Loading branch information
dokenzy committed Feb 11, 2015
1 parent 8ffcd5c commit 6142fda
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/angular-pdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
return;
}
scope.pageToDisplay = scope.pageToDisplay - 1;
scope.pageNum = scope.pageNum - 1;
scope.renderPage(scope.pageToDisplay);
};

Expand All @@ -59,6 +60,7 @@
return;
}
scope.pageToDisplay = scope.pageToDisplay + 1;
scope.pageNum = scope.pageNum + 1;
scope.renderPage(scope.pageToDisplay);
};

Expand Down

0 comments on commit 6142fda

Please sign in to comment.