From 141e32782b0f239bf3e4eee4585f62af414d0eea Mon Sep 17 00:00:00 2001 From: Devin Smith Date: Wed, 13 Apr 2011 10:08:54 -0700 Subject: [PATCH 1/2] Added currentPage to afterStop event. --- jquery.mobile.carousel.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jquery.mobile.carousel.js b/jquery.mobile.carousel.js index 49a4dd8..a1c9e03 100644 --- a/jquery.mobile.carousel.js +++ b/jquery.mobile.carousel.js @@ -99,6 +99,7 @@ return width - dragDelta(); } + arguments[1].currentPage = currentPage; settings.afterStop.apply(list, arguments); } }); @@ -160,6 +161,7 @@ return height - dragDelta(); } + arguments[1].currentPage = currentPage; settings.afterStop.apply(list, arguments); } }); From 06f24fed20f9992abd5a543f912328fcde0a7266 Mon Sep 17 00:00:00 2001 From: Devin Smith Date: Wed, 13 Apr 2011 10:20:55 -0700 Subject: [PATCH 2/2] Added forked demo with paging --- README | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README b/README index e644da8..2ebf467 100644 --- a/README +++ b/README @@ -1,6 +1,6 @@ You must use the jquery.ui.ipad.js plugin in order for jQuery UI widgets to recognize mobile touch events as click events. -Demo: http://jsfiddle.net/blackdynamo/yxhzU/ +Demo: http://jsfiddle.net/arzynik/jvf7w/1/ Available options: