Evas textblock: Use width of item format to position cursor. 34/66934/2
authorSubodh Kumar <s7158.kumar@samsung.com>
Thu, 17 Dec 2015 11:54:35 +0000 (11:54 +0000)
committerYoungbok Shin <youngb.shin@samsung.com>
Mon, 25 Apr 2016 04:25:22 +0000 (21:25 -0700)
commitfdde1ebe95091ded93ab542d4c5c8d09a9c405bf
tree75868840c8b662e2a25e413ecbf486eac6800799
parent84e3662085fcb4dc7dac51d7a93ce90117391419
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

Change-Id: I801bfd2e3754299b5268be9970eed9ae5b340935
src/lib/evas/canvas/evas_object_textblock.c
src/tests/evas/evas_test_textblock.c