From e6c02235cdc71d7b0df4d144dd5bd9906dfc1647 Mon Sep 17 00:00:00 2001 From: "Michael J. Rubinsky" Date: Fri, 7 Jan 2011 19:06:48 -0500 Subject: [PATCH] Add swipe navigation to image view --- ansel/js/mobile.js | 45 ++++++++++++++++++++++++++++++++++++++++----- 1 file changed, 40 insertions(+), 5 deletions(-) diff --git a/ansel/js/mobile.js b/ansel/js/mobile.js index 804093388..e1bada30a 100644 --- a/ansel/js/mobile.js +++ b/ansel/js/mobile.js @@ -20,12 +20,19 @@ var AnselMobile = { */ currentGallery: null, + /** + * Array of images in the currentGallery + * + * @var array + */ currentImages: null, /** - * Currently loaded image thumbnails + * The index in currentImages[] for the currently displayed image + * + * @var integer */ - //imgs: [], + currentImage: null, /** * Build a gallery list @@ -48,6 +55,11 @@ var AnselMobile = { return l; }, + /** + * Build a