elm_interface_scrollable.c: fix scroller page flick calculation roundup routine.
authorDaniel Juyung Seo <juyung.seo@samsung.com>
Tue, 3 Dec 2013 14:49:30 +0000 (23:49 +0900)
committerDaniel Juyung Seo <juyung.seo@samsung.com>
Tue, 3 Dec 2013 15:42:15 +0000 (00:42 +0900)
commit9013230dacbaa3b54d8d32f013c6ae07a6814cf3
treed966456e38a4752a0fb946dafe149a9101c77401
parentbc9d9ecd6b4f9e40ae0ca0b04c2e7d03884d1557
elm_interface_scrollable.c: fix scroller page flick calculation roundup routine.

When the offset is not bigger than 0 && abs(offset) is not smaller than dx(or dy), round up routine could have mis-calculation bug.
It should substract one value more to get a proper round up result.
For example, when x = 1440, offset = -2160, dx = 360, x should become 720 but round up routine made it 1440.
Because it was rounded up from 1080 to 1440. It should be rounded down from 1079 to 720.

Special thanks to Hosang Kim for the help.

Signed-off-by: Daniel Juyung Seo <juyung.seo@samsung.com>
Signed-off-by: Hosang Kim <hosang12.kim@samsung.com>
legacy/elementary/src/lib/elm_interface_scrollable.c