edje_entry: prevent cursor position change in selection state 06/244306/3
authorBowon Ryu <bowon.ryu@samsung.com>
Thu, 17 Sep 2020 06:05:29 +0000 (15:05 +0900)
committerBowon Ryu <bowon.ryu@samsung.com>
Fri, 18 Sep 2020 02:40:51 +0000 (02:40 +0000)
this patch prevents the cursor position from change due to mouse up on selection state

Change-Id: I57458f72aad1e5be0afdde1be7664c2e48004c26
Signed-off-by: Bowon Ryu <bowon.ryu@samsung.com>
src/lib/edje/edje_entry.c

index 690ebd7..f0614bd 100644 (file)
@@ -3028,6 +3028,10 @@ _edje_part_mouse_up_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UN
      }
 #endif
 
+   /* TIZEN_ONLY(20200917): prevent cursor position change in selection state */
+   if (!en->selecting && en->have_selection) return;
+   /* END */
+
    /* cx cy are unused but needed in mouse down, please bear with it */
    tc = _edje_cursor_cluster_coord_set(rp, ev->canvas.x, ev->canvas.y, &cx, &cy);