(svn r3134) Forgot to commit one file in r3133
authortron
Fri, 04 Nov 2005 14:57:53 +0000
changeset 2597 68ffedae1eb5
parent 2596 d228e8ce6fcf
child 2598 574b5774149c
(svn r3134) Forgot to commit one file in r3133
widget.c
--- a/widget.c	Fri Nov 04 14:01:44 2005 +0000
+++ b/widget.c	Fri Nov 04 14:57:53 2005 +0000
@@ -86,26 +86,22 @@
 	}
 	if (pos <= mi+9) {
 		// Pressing the upper button?
-		if (!_demo_mode) {
-			w->flags4 |= WF_SCROLL_UP;
-			if (_scroller_click_timeout == 0) {
-				_scroller_click_timeout = 6;
-				if (sb->pos != 0) sb->pos--;
-			}
-			_left_button_clicked = false;
+		w->flags4 |= WF_SCROLL_UP;
+		if (_scroller_click_timeout == 0) {
+			_scroller_click_timeout = 6;
+			if (sb->pos != 0) sb->pos--;
 		}
+		_left_button_clicked = false;
 	} else if (pos >= ma-10) {
 		// Pressing the lower button?
-		if (!_demo_mode) {
-			w->flags4 |= WF_SCROLL_DOWN;
+		w->flags4 |= WF_SCROLL_DOWN;
 
-			if (_scroller_click_timeout == 0) {
-				_scroller_click_timeout = 6;
-				if ((byte)(sb->pos + sb->cap) < sb->count)
-					sb->pos++;
-			}
-			_left_button_clicked = false;
+		if (_scroller_click_timeout == 0) {
+			_scroller_click_timeout = 6;
+			if ((byte)(sb->pos + sb->cap) < sb->count)
+				sb->pos++;
 		}
+		_left_button_clicked = false;
 	} else {
 		//
 		Point pt = HandleScrollbarHittest(sb, mi, ma);