From 1f7e5f5c258c3d66e1704ee48a11c79c65f8354b Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Sat, 12 Oct 2024 21:39:14 +0200 Subject: Add new scrollbar page mode The scroll page mode changes the behavior of the mouse when clicking on the vertical scrollbar. When enabled with scrollbar_page_mode=YES, clicking with the left button anywhere on the vertical scrollbar will cause the page to scroll down one page. With the right button, to scroll up one page. Holding Shift temporarily reverts the value of the option. --- src/uicmd.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/uicmd.cc') diff --git a/src/uicmd.cc b/src/uicmd.cc index 07593892..ad6e67c1 100644 --- a/src/uicmd.cc +++ b/src/uicmd.cc @@ -629,6 +629,7 @@ static BrowserWindow *UIcmd_tab_new(CustTabs *tabs, UI *old_ui, int focus) viewport->setBufferedDrawing (prefs.buffered_drawing ? true : false); viewport->setDragScroll (prefs.middle_click_drags_page ? true : false); viewport->setScrollbarOnLeft (prefs.scrollbar_on_left ? true : false); + viewport->setScrollbarPageMode (prefs.scrollbar_page_mode ? true : false); layout->attachView (viewport); new_ui->set_render_layout(viewport); viewport->setScrollStep(prefs.scroll_step); -- cgit v1.2.3