Quantcast
Channel: phones - jwz
Viewing all articles
Browse latest Browse all 294

page-dragging with Javascript

$
0
0
I made dragging left/right go to the prev/next page on the DNA Lounge galleries and flyers pages. Does it work reasonably for you?

I noticed that when people look at the photos on their iPhones, they expect dragging to go to the next photo, so, this. It doesn't animate smoothly -- the new photo doesn't slide in, it just loads the new page with document.location -- but it's better than nothing, I guess.

The code is in dragnav.js. I think it might interact weirdly with pages that are zoomed in, but it's hard to tell, because the image-sizing stuff in gallery.js already seems to interact weirdly with that all on its own.

I've only tested this on iPad and iPhone. Does it work ok elsewhere?


Viewing all articles
Browse latest Browse all 294

Trending Articles