diff options
author | Hosang Kim <hosang12.kim@samsung.com> | 2018-05-25 10:04:49 -0700 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2018-05-25 10:04:50 -0700 |
commit | 37f13a9d10e1b94c5d34ead61d316f434f7688de (patch) | |
tree | 7791fe804eccb7bef922ccbdc60561e90147b9d1 | |
parent | a8b7833a4833ac17a417be41167a2284ace85022 (diff) | |
download | efl-37f13a9d10e1b94c5d34ead61d316f434f7688de.tar.gz |
elm_interface_scrollable: change return value for post events.
Summary:
1. Scroller in scroller case, callback process should continue.
If child scroller does not scroll, parent scroller should be checked whether scroll or not.
So returning EINA_TRUE is necessary.
2. down.dragged flag is always EINA_FALSE, so scroll is never unlocked.
@fix
Test Plan:
precondition
elementary_config -> scrolling -> Set Scroll Smooth Amount to 0
elementary_test -> pagescroller
Reviewers: woohyun, zmike, singh.amitesh, cedric
Reviewed By: cedric
Subscribers: #committers, cedric, zmike
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D6187
Reviewed-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r-- | src/lib/elementary/elm_interface_scrollable.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/lib/elementary/elm_interface_scrollable.c b/src/lib/elementary/elm_interface_scrollable.c index e99db959cf..b7ffad275c 100644 --- a/src/lib/elementary/elm_interface_scrollable.c +++ b/src/lib/elementary/elm_interface_scrollable.c @@ -2209,10 +2209,9 @@ _elm_scroll_post_event_up(void *data, if (sid->obj) { - if (sid->down.dragged) - elm_widget_scroll_lock_set(sid->obj, EFL_UI_SCROLL_BLOCK_NONE); + elm_widget_scroll_lock_set(sid->obj, EFL_UI_SCROLL_BLOCK_NONE); } - return EINA_FALSE; + return EINA_TRUE; } static Eina_Bool @@ -3096,7 +3095,7 @@ _elm_scroll_post_event_move(void *data, } if (start) _elm_scroll_drag_start(sid); - return EINA_FALSE; + return EINA_TRUE; } static void |