aboutsummaryrefslogtreecommitdiff
path: root/dw/fltkviewport.hh
diff options
context:
space:
mode:
Diffstat (limited to 'dw/fltkviewport.hh')
-rw-r--r--dw/fltkviewport.hh3
1 files changed, 2 insertions, 1 deletions
diff --git a/dw/fltkviewport.hh b/dw/fltkviewport.hh
index 080d0f59..3df1dccb 100644
--- a/dw/fltkviewport.hh
+++ b/dw/fltkviewport.hh
@@ -21,7 +21,7 @@ private:
int scrollX, scrollY;
int scrollDX, scrollDY;
- int dragScrolling, dragX, dragY;
+ int hasDragScroll, dragScrolling, dragX, dragY;
int horScrolling, verScrolling;
Fl_Scrollbar *vscrollbar, *hscrollbar;
@@ -70,6 +70,7 @@ public:
void setGadgetOrientation (bool hscrollbarVisible, bool vscrollbarVisible,
GadgetOrientation gadgetOrientation);
+ void setDragScroll (bool enable) { hasDragScroll = enable ? 1 : 0; }
void addGadget (Fl_Widget *gadget);
};