andreasgal/gaia — pull request #1205 by davidflanagan (2012-04-12 00:55:56+00:00)
Title: refactor gallery app in preparation for adding gesture support

This pull request is a major rewrite of apps/gallery/js/gallery.js with smaller supporting changes in index.html and gallery.css

The code is restructured so it is not inside of a Gallery pseudo-class. But the biggest structural change is that the app no longer pre-loads all the photos into the document. Now only three photos (previous, current, next) are in the document at any time, and the panning code and transitions have been competely redone to support that new structure.

I've also made panning work in the correct direction for RTL languages.

Its not worth trying to review the individual commits in this pull request... You really have to review the whole gallery.js file.

I'm going to keep working on it to add gestures, so this doesn't have to get pulled right now; we could wait 'till the whole thing is done and then just review it once then.