minor cleanup and tweaking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2014-11-12 05:47:50 +03:00
parent 52d9564345
commit 7076cd035a
2 changed files with 9 additions and 3 deletions

View File

@ -72,6 +72,7 @@
transition: left 0.2s ease-out;
}
/* XXX should this be !important */
.no-transitions {
-webkit-transition: none;
-moz-transition: none;
@ -81,7 +82,8 @@
}
/* XXX think of a way not to use !important */
.viewer.single-image-mode .ribbon {
.single-image-mode .ribbon,
.single-image-mode .ribbon-set {
-webkit-transition: none !important;
-moz-transition: none !important;
-ms-transition: none !important;

View File

@ -1307,7 +1307,9 @@ module.ShiftAnimation = Feature({
['shiftImageUp.pre shiftImageDown.pre',
function(target){
// XXX do not do target lists...
if(target != null && target.constructor === Array){
if(target != null && target.constructor === Array
// do not animate in single image mode...
&& this.toggleSingleImage('?') == 'on'){
return
}
var s = this.ribbons.makeShadow(target, true)
@ -1318,7 +1320,9 @@ module.ShiftAnimation = Feature({
['shiftImageLeft.pre shiftImageRight.pre',
function(target){
// XXX do not do target lists...
if(target != null && target.constructor === Array){
if(target != null && target.constructor === Array
// do not animate in single image mode...
&& this.toggleSingleImage('?') == 'on'){
return
}
var s = this.ribbons.makeShadow(target)