elementary: initialize single_direction as none for elm_map.
authorSungtaek Hong <sth253.hong@samsung.com>
Tue, 31 May 2016 21:38:45 +0000 (14:38 -0700)
committerCedric BAIL <cedric@osg.samsung.com>
Tue, 31 May 2016 21:59:26 +0000 (14:59 -0700)
Summary:
 - elm_map has a scrollbale interface and it is set
   as ELM_SCROLLER_SINGLE_DIRECTION_SOFT by default.
 - elm_map can be rotated by gesture or by an API
   elm_map_rotate_set, so this single direction
   makes scroll unnatural.

Reviewers: Hermet, cedric

Subscribers: conr2d, jpeg

Differential Revision: https://phab.enlightenment.org/D3986

Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/elementary/elm_map.c

index 8146ad0..708154e 100644 (file)
@@ -4069,6 +4069,7 @@ _elm_map_evas_object_smart_add(Eo *obj, Elm_Map_Data *priv)
    elm_interface_scrollable_objects_set(obj, edje, priv->hit_rect);
    elm_interface_scrollable_wheel_disabled_set(obj, EINA_TRUE);
    elm_interface_scrollable_bounce_allow_set(obj, _elm_config->thumbscroll_bounce_enable, _elm_config->thumbscroll_bounce_enable);
+   elm_interface_scrollable_single_direction_set(obj, ELM_SCROLLER_SINGLE_DIRECTION_NONE);
 
    evas_object_event_callback_add(obj, EVAS_CALLBACK_CHANGED_SIZE_HINTS,
                                   _changed_size_hints_cb, obj);