diff --git a/src/toolbar.ts b/src/toolbar.ts index 07c6860..b343bd1 100644 --- a/src/toolbar.ts +++ b/src/toolbar.ts @@ -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')