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)
commit75c74b40688e27e8ac3cff3e733c87989ec2b419
treec0d8eee915c2aded8de6850cbb8baff0c96c4515
parentfb6096ca306d7c5d38fb944d928f835043fcba35
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
src/lib/elm_scroller.c