changeset 1559:9cf6cfa086b7

smoother transition (?); less debug noise
author hertzhaft
date Sat, 29 Oct 2016 22:34:38 +0200
parents f747edb6cc9a
children 2a23b922d37e
files webapp/src/main/webapp/jquery/jquery.digilib.annotator.js webapp/src/main/webapp/jquery/jquery.digilib.js
diffstat 2 files changed, 7 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/webapp/src/main/webapp/jquery/jquery.digilib.annotator.js	Sat Oct 29 21:47:35 2016 +0200
+++ b/webapp/src/main/webapp/jquery/jquery.digilib.annotator.js	Sat Oct 29 22:34:38 2016 +0200
@@ -442,7 +442,7 @@
                   'style': 'pointer-events:all'
                   }
                };
-            console.debug('createshape: '+type, annoShape, shape);
+            // console.debug('createshape: '+type, annoShape, shape);
             shapes.push(shape);
         }
         return shapes;
--- a/webapp/src/main/webapp/jquery/jquery.digilib.js	Sat Oct 29 21:47:35 2016 +0200
+++ b/webapp/src/main/webapp/jquery/jquery.digilib.js	Sat Oct 29 22:34:38 2016 +0200
@@ -103,7 +103,7 @@
         // reserved space in full page display (default value accounts for body margins)
         'scalerInsets' : { 'x' : 26, 'y': 20 },
         // how transparent does the background image get while changing the zoom area?
-        'scalerFadedOpacity' : 0.7,
+        'scalerFadedOpacity' : 0.6,
         // number of decimal places, for cropping parameters wx,wy,wh,ww
         'decimals' : 4
         };
@@ -1309,7 +1309,7 @@
      * 
      */
     var handleChangeZoomArea = function (evt, newZa) {
-        console.debug("handleChangeZoomArea:", newZa);
+        // console.debug("handleChangeZoomArea:", newZa);
         var data = this;
         // hide all overlays (marks/regions)
         data.$elem.find('.'+data.settings.cssPrefix+'overlay').hide();
@@ -1587,13 +1587,13 @@
         var $img = data.$img;
         var $scaler = data.$scaler;
         if (show == null || show == 0) {
+          // $img.css('visibility', 'hidden');
           $scaler.fadeTo('fast', data.settings.scalerFadedOpacity);
-          // $img.css('visibility', 'hidden');
-          $img.fadeOut();
+          $img.fadeOut({queue: false});
         } else {
+          // $img.css('visibility', 'visible');
+          $img.fadeIn({queue: false});
           $scaler.fadeTo('slow', 1);
-          // $img.css('visibility', 'visible');
-          $img.fadeIn();
         }
     };