summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaeun Choi <jaeun12.choi@samsung.com>2017-10-25 14:40:09 +0900
committerJaeun Choi <jaeun12.choi@samsung.com>2017-10-25 14:40:09 +0900
commitb58c809a701af31ef24a7ac40c2c925cbd2dd215 (patch)
tree223d29f8d6b936f6cb8c3bc20b33a82229f43e1d
parent5837c5f8a49b37e9873294d77e452978e5ae0d7e (diff)
Efl.Ui.Pager: fix a bugdevs/eunue/interface
-rw-r--r--src/lib/elementary/efl_page_transition_scroll.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/elementary/efl_page_transition_scroll.c b/src/lib/elementary/efl_page_transition_scroll.c
index b39ab17079..65c819884b 100644
--- a/src/lib/elementary/efl_page_transition_scroll.c
+++ b/src/lib/elementary/efl_page_transition_scroll.c
@@ -227,7 +227,7 @@ _efl_page_transition_scroll_efl_page_transition_finish(Eo *obj EINA_UNUSED,
227 efl_canvas_object_clip_set(pi->obj, pd->viewport.backclip); 227 efl_canvas_object_clip_set(pi->obj, pd->viewport.backclip);
228 } 228 }
229 } 229 }
230 pd->current_page += 1; 230 pd->current_page = (pd->current_page + 1) % pd->cnt;
231 } 231 }
232 else if (pd->move == -1.0) 232 else if (pd->move == -1.0)
233 { 233 {
@@ -255,7 +255,7 @@ _efl_page_transition_scroll_efl_page_transition_finish(Eo *obj EINA_UNUSED,
255 efl_canvas_object_clip_set(pi->obj, pd->viewport.backclip); 255 efl_canvas_object_clip_set(pi->obj, pd->viewport.backclip);
256 } 256 }
257 } 257 }
258 pd->current_page -= 1; 258 pd->current_page = (pd->current_page - 1 + pd->cnt) % pd->cnt;
259 } 259 }
260 260
261 pd->move = 0.0; 261 pd->move = 0.0;