entry: hide ctxpopup during long press and drag 20/109820/1
authorMinchul Lee <slotus.lee@samsung.com>
Thu, 12 Jan 2017 01:41:59 +0000 (10:41 +0900)
committerMinchul Lee <slotus.lee@samsung.com>
Thu, 12 Jan 2017 02:00:59 +0000 (11:00 +0900)
Sometimes, ctxpopup was not hidden when drag.
When select new word on drag, ctxpopup should be hidden.

Change-Id: Ic206d3d086b20cfa37eb3fea5c1fd48e58b86139
Signed-off-by: Minchul Lee <slotus.lee@samsung.com>
src/lib/elm_entry.c

index 3ce0d13..a16a23b 100644 (file)
@@ -3304,7 +3304,13 @@ _mouse_move_cb(void *data,
                   int cur_pos = edje_object_part_text_cursor_pos_get
                                        (sd->entry_edje, "elm.text", EDJE_CURSOR_MAIN);
                   if (cur_pos != sd->cursor_move_pos)
-                    _select_word(data, NULL, NULL);
+                    {
+                       // TIZEN_ONLY (20170112): hide ctxpopup during long press and drag
+                       if ((sd->api) && (sd->api->obj_hidemenu))
+                         sd->api->obj_hidemenu(data);
+                       //
+                       _select_word(data, NULL, NULL);
+                    }
                   //
                }
              //