aboutsummaryrefslogtreecommitdiff
path: root/dw/fltkviewport.hh
diff options
context:
space:
mode:
authorRodrigo Arias Mallo <rodarima@gmail.com>2024-10-13 14:22:14 +0200
committerRodrigo Arias Mallo <rodarima@gmail.com>2024-10-13 16:18:41 +0200
commitf73a9c1a1967318a33cc91f588552574dc7c3f01 (patch)
tree17725a28fd5719e052a74c27f722de545d0310a4 /dw/fltkviewport.hh
parent667f7fd713bc2d4f9196bc71e2b8ac8b2ca210f1 (diff)
Control the page overlap independently
Introduces the new option scroll_page_overlap to control the amount of pixels of overlap when scrolling to the next or previous page. Previously this value was taken from scroll_step, but now they are controlled independently. Fixes: https://github.com/dillo-browser/dillo/issues/276
Diffstat (limited to 'dw/fltkviewport.hh')
-rw-r--r--dw/fltkviewport.hh2
1 files changed, 2 insertions, 0 deletions
diff --git a/dw/fltkviewport.hh b/dw/fltkviewport.hh
index 62d4fa21..2cff42d3 100644
--- a/dw/fltkviewport.hh
+++ b/dw/fltkviewport.hh
@@ -45,6 +45,7 @@ private:
int hasDragScroll, dragScrolling, dragX, dragY;
int horScrolling, verScrolling;
bool scrollbarPageMode;
+ int pageOverlap;
Fl_Scrollbar *vscrollbar, *hscrollbar;
@@ -100,6 +101,7 @@ public:
void addGadget (Fl_Widget *gadget);
void setScrollbarOnLeft (bool enable);
void setScrollbarPageMode(bool enable);
+ void setPageOverlap(int overlap);
};
} // namespace fltk