Elementary els_scroller: Fixed bar-dragging.

[patch] els_scroller - simple bug fix about bar-dragging. by Jae Hwan Kim.

More info:
You can test it in "Scroller" menu of the "elementary_test".
We cannot move the scroller by dragging the bar.
The reason is why the bar-dragging-event and mouse-move-event confict.
When bar is draged, the movement by mouse-move should be freezed.

SVN revision: 57184
This commit is contained in:
Tom Hacohen 2011-02-20 09:15:16 +00:00
parent 06d93733d7
commit 57afcfb4ea
1 changed files with 4 additions and 0 deletions

View File

@ -1351,6 +1351,7 @@ _smart_edje_drag_v_start(void *data, Evas_Object *obj __UNUSED__, const char *em
sd = data;
_smart_scrollbar_read(sd);
_smart_drag_start(sd->smart_obj);
sd->freeze = EINA_TRUE;
}
static void
@ -1361,6 +1362,7 @@ _smart_edje_drag_v_stop(void *data, Evas_Object *obj __UNUSED__, const char *emi
sd = data;
_smart_scrollbar_read(sd);
_smart_drag_stop(sd->smart_obj);
sd->freeze = EINA_FALSE;
}
static void
@ -1380,6 +1382,7 @@ _smart_edje_drag_h_start(void *data, Evas_Object *obj __UNUSED__, const char *em
sd = data;
_smart_scrollbar_read(sd);
_smart_drag_start(sd->smart_obj);
sd->freeze = EINA_TRUE;
}
static void
@ -1390,6 +1393,7 @@ _smart_edje_drag_h_stop(void *data, Evas_Object *obj __UNUSED__, const char *emi
sd = data;
_smart_scrollbar_read(sd);
_smart_drag_stop(sd->smart_obj);
sd->freeze = EINA_FALSE;
}
static void