diff --git a/ui/TODO.otl b/ui/TODO.otl
index 13648622..3008ad08 100755
--- a/ui/TODO.otl
+++ b/ui/TODO.otl
@@ -1,5 +1,5 @@
Priority work
- [_] 72% Preview II
+ [_] 73% Preview II
[X] 100% sorted images in ribbons
[X] 100% stage I: position the promoted/demoted image correctly
| and correct positioning on promote/demote
@@ -58,7 +58,7 @@ Priority work
[X] one (with zooming)
[X] single image mode with zooming
| ribbons are hidden
- [_] 60% UI
+ [_] 66% UI
[X] fix single image mode
| need to center the image correctly...
[X] 100% add screen buttons for all actions...
@@ -70,6 +70,9 @@ Priority work
[X] three
[X] wide
| toggle...
+ [X] 100% control single-image mode animations
+ [X] scroll
+ [X] switch (no transition)
[_] 0% layout
[_] tablet
| - buttons at sides
@@ -99,7 +102,7 @@ Priority work
| before starting on a fix, need to cleanup the code from old hacks and workarounds...
[_] 0% native client
[_] android
- [_] 10% Preview II (optional features)
+ [_] 8% Preview II (optional features)
[_] 80% drag/move action...
[X] basic infrastructure
[X] action: center current image
@@ -128,6 +131,7 @@ Priority work
[_] tap image to return from large magnification
[_] pinch to zoom
[_] slideshow...
+ [_] fade animation is single image mode...
[_] add sort/re-sort capability...
[_] make scrolling of other ribbons proportional to the gap...
[_] 0% refactoring (low priority)
diff --git a/ui/gallery-prototype.js b/ui/gallery-prototype.js
index dc2e93f6..7503acca 100755
--- a/ui/gallery-prototype.js
+++ b/ui/gallery-prototype.js
@@ -6,6 +6,7 @@
var keys = {
toggleHelp: [72],
toggleSingleImageMode: [70, 13], // ???, Enter
+ toggleSingleImageModeTransitions: [65], // a
close: [27, 88, 67],
// zooming...
@@ -232,6 +233,7 @@ function handleKeys(event){
: (fn(code, keys.moveViewRight) >= 0) ? moveViewRight()
: (fn(code, keys.toggleSingleImageMode) >= 0) ? toggleSingleImageMode()
+ : (fn(code, keys.toggleSingleImageModeTransitions) >= 0) ? toggleSingleImageModeTransitions()
: (fn(code, keys.ignore) >= 0) ? false
// XXX
: (keys.helpShowOnUnknownKey) ? function(){alert(code)}()
@@ -547,6 +549,16 @@ function mergeRibbons(direction){
}
+function toggleSingleImageModeTransitions(){
+ if( $('.no-single-image-transitions').length > 0 ){
+
+ $('.no-single-image-transitions').removeClass('no-single-image-transitions')
+ } else {
+ $('.viewer').addClass('no-single-image-transitions')
+ }
+}
+
+
/*************************************************** Editor Actions **/
diff --git a/ui/gallery.css b/ui/gallery.css
index 0a201725..860df80b 100755
--- a/ui/gallery.css
+++ b/ui/gallery.css
@@ -9,7 +9,7 @@
.unanimated {
-webkit-transition: none;
-moz-transition: none;
- -o-transition: none;
+ -o-transition: all 0 ease;
-ms-transition: none;
transition: none;
}
diff --git a/ui/gallery.html b/ui/gallery.html
index b3e7d694..f0fb4125 100755
--- a/ui/gallery.html
+++ b/ui/gallery.html
@@ -101,6 +101,10 @@ $(document).ready(setup);
+
+
+
+
diff --git a/ui/single-image-mode.css b/ui/single-image-mode.css
index 9b3496a3..37d070cd 100755
--- a/ui/single-image-mode.css
+++ b/ui/single-image-mode.css
@@ -32,3 +32,13 @@
opacity: 1.0;
}
+
+/* disabled animations */
+.single-image-mode.no-single-image-transitions .image, .single-image-mode.no-single-image-transitions .ribbon {
+ -webkit-transition: none;
+ -moz-transition: none;
+ -o-transition: all 0 ease;
+ -ms-transition: none;
+ transition: none;
+}
+