Skip to content

Commit

Permalink
Debug paginator
Browse files Browse the repository at this point in the history
  • Loading branch information
allanlasser committed Feb 22, 2024
1 parent 20e2579 commit 0b01b33
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/pages/viewer/controls/Paginator.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,13 @@
$: totalPages = viewer.document.pageCount;
$: has_next = page < totalPages;
$: has_previous = page > 1;
$: {
console.debug({ page, totalPages, has_next, has_previous });
}
function goToPage(event: CustomEvent) {
const page = event.detail;
console.log("Go to page ", page);
console.debug("Go to page ", page);
doc.jumpToPage(page - 1);
}
</script>
Expand Down

0 comments on commit 0b01b33

Please sign in to comment.