From d86555f235eac7337a5778529c80738e1cc97893 Mon Sep 17 00:00:00 2001 From: Thiep Ha Date: Fri, 3 May 2013 15:39:39 +0900 Subject: [PATCH] [Magnifier] Freeze scroller when magnifier is showing Change-Id: I3b954aeb6eb25627512b467db423c39a9585764d --- src/lib/elm_entry.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/lib/elm_entry.c b/src/lib/elm_entry.c index cf5dc1e..6d66d82 100644 --- a/src/lib/elm_entry.c +++ b/src/lib/elm_entry.c @@ -237,11 +237,9 @@ _magnifier_hide(void *data) { evas_object_hide(sd->mgf_bg); evas_object_hide(sd->mgf_clip); + elm_object_scroll_freeze_pop(data); } - if (sd->scroll) - sd->s_iface->freeze_set(data, EINA_FALSE); - sd->magnifier_showing = EINA_FALSE; } @@ -254,6 +252,7 @@ _magnifier_show(void *data) { evas_object_show(sd->mgf_bg); evas_object_show(sd->mgf_clip); + elm_object_scroll_freeze_push(data); } sd->magnifier_showing = EINA_TRUE; @@ -389,7 +388,6 @@ _magnifier_create(void *data) if (sd->scroll) { - sd->s_iface->freeze_set(data, EINA_TRUE); sd->mgf_proxy = evas_object_image_add(evas_object_evas_get(sd->scr_edje)); evas_object_image_source_set(sd->mgf_proxy, sd->scr_edje); } -- 2.7.4