Evas textblock: Use width of item format to position cursor.
authorSubodh Kumar <s7158.kumar@samsung.com>
Thu, 17 Dec 2015 11:54:35 +0000 (11:54 +0000)
committerTom Hacohen <tom@stosb.com>
Thu, 17 Dec 2015 12:00:23 +0000 (12:00 +0000)
commit43f50dc7dbb159752d7913dea35e8156d0f10c7b
tree010dace9add7521efdae9e0e950f25ce7caa806f
parent8c891ed0493c02f018a12c49c5c5f821291d7b39
Evas textblock: Use width of item format to position cursor.

Summary:
Use width of item format to position cursor.

Sometimes it becomes very difficult to
position cursor over item and selection
becomes very difficult as we position the
cursor once the input X coord reached end of the item,
like one attached in the test plan. So this patch
decides over 50% of item width for X coord reaches
to position it at start or end.

@ix

Test Plan:
Attached setup shows how difficult to position cursor at the end when clicked
over item and selection is also very difficult. Consider such case in mobile
device, its becomes impossible to position cursor at the end and selection is
too much difficult.

{F27036}

Also added test cases in evas test suite

Reviewers: herdsman, tasn

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D3390
src/lib/evas/canvas/evas_object_textblock.c
src/tests/evas/evas_test_textblock.c