Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Posts: 10
Registered: ‎05-18-2013
My Device: 8520
My Carrier: Idea

Center scroll position on mobile

On phones (iOS, Android >4, BB10), when looking at photos, the photos center themselves as you swipe across to look at through the album. Is it possible to achieve the same affect with a set of photos that are listed on a mobile website? Currently on my simple photo listing page, the user can scroll downwards to look at each photo, but has to center the photo manually. I would like the experience to be similar to that of the native camera apps. I thought perhaps that I would be able to manipulate the scrollbar position.
Posts: 165
Registered: ‎09-24-2012
My Device: Passport
My Carrier: Bell

Re: Center scroll position on mobile

What you need is a good library. Check out "Snap to Element" in iScroll: http://cubiq.org/iscroll-4