Scroller: Improvement in _key_action_move() calculations.
authorUmesh Tanwar <umesh.tanwar@samsung.com>
Sun, 19 Jul 2015 14:40:28 +0000 (23:40 +0900)
committerSangHyeon Lee <dltkdgus1764@gmail.com>
Sun, 19 Jul 2015 14:40:50 +0000 (23:40 +0900)
commitd9c18d98143e994142a74bfb59ee7ccc8bb5eef9
tree43a0a079ab6b8f3163acf25c10c20f6e1e9b60f6
parent8dbed27dcd396c3a5dd20947083d3531fd24e1e8
Scroller: Improvement in _key_action_move() calculations.

Summary:
If x coordinate is equal to 0, key action is no more
effective as EINA_FALSE is returned. This is creating problem
in looping. Looping will be done when x < 0, but as soon as
x == 0, _key_action_move starts returning EINA_FALSE. Same
thing applies to y coordinate and other extremities.

@fix

Signed-off-by: Umesh Tanwar <umesh.tanwar@samsung.com>
Test Plan: elementary_test -> Scroller -> Loop in X axis -> scroll left using left key(looping does not happen)

Reviewers: raster, Hermet, cedric, singh.amitesh, SanghyeonLee

Reviewed By: SanghyeonLee

Subscribers: sachin.dev, SanghyeonLee, eagleeye

Differential Revision: https://phab.enlightenment.org/D2778
legacy/elementary/src/lib/elm_scroller.c