aboutsummaryrefslogtreecommitdiffstats
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
parentfix build break after rebase (diff)
downloadefl-devs/eunue/interface.tar.gz
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,
efl_canvas_object_clip_set(pi->obj, pd->viewport.backclip);
}
}
- pd->current_page += 1;
+ pd->current_page = (pd->current_page + 1) % pd->cnt;
}
else if (pd->move == -1.0)
{
@@ -255,7 +255,7 @@ _efl_page_transition_scroll_efl_page_transition_finish(Eo *obj EINA_UNUSED,
efl_canvas_object_clip_set(pi->obj, pd->viewport.backclip);
}
}
- pd->current_page -= 1;
+ pd->current_page = (pd->current_page - 1 + pd->cnt) % pd->cnt;
}
pd->move = 0.0;