Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
RyotaUshio committed Nov 2, 2024
1 parent 0334d46 commit 10d26d3
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/toolbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,18 @@ export class PDFPlusToolbar extends PDFPlusComponent {
});
});
})
.addItem((item) => {
item.setSection('scroll')
.setIcon('lucide-sticky-note')
.setTitle('In-page scroll')
.setChecked(scrollMode === ScrollMode.PAGE)
.onClick(() => {
eventBus.dispatch('switchscrollmode', {
source: toolbar,
mode: ScrollMode.PAGE
});
});
})
.addItem((item) => {
item.setSection('scroll')
.setIcon('lucide-wrap-text')
Expand Down

0 comments on commit 10d26d3

Please sign in to comment.