Edje entry: Fix cursor position on mouse up and down
authorSubodh Kumar <s7158.kumar@samsung.com>
Mon, 21 Dec 2015 14:27:43 +0000 (14:27 +0000)
committerTom Hacohen <tom@stosb.com>
Mon, 21 Dec 2015 14:29:03 +0000 (14:29 +0000)
commit7684cea2267f3fdd48977319ae05cbb4d12b82e9
treedf2e5bfeb1a3d61374e4aba1735a77ed52967d69
parent374b7956830f7cad944cd53dc169ffa43213f7c1
Edje entry: Fix cursor position on mouse up and down

Summary:
Fix cursor position on mouse up/down

When mouse down/up over top and bottom  part textblock is not able to set the
char coordinate as it is not inside actual text, edje entry tries to manage it
but textblock has that handling. As a result the cursor jump to first char for
single line and at the last in the multiline last line.

So this patch fixes this and manage to keep the  the mouse coordinate inside
the textblock.

In mobile device this is not really acceptable when user taps over the entry
at some position and cursor jumps to  some arbitrary position.

@fix

Test Plan:
1. Elementary Test
2. Entry 3 (any entry)
3. Try to click little below or above the text in first entry
     single line.Observe cursor jumps to first position
4. Do as above for multiline entry (try to click at the last line little below)
observe cursor jumps to last char.

Reviewers: thiepha, herdsman, tasn

Subscribers: jpeg, tasn, cedric

Differential Revision: https://phab.enlightenment.org/D3257
src/lib/edje/edje_entry.c