photosgallery/viewframework/views/zoomview/src/glxzoomeventhandler.cpp
branchRCL_3
changeset 19 420f6808bf21
parent 18 78ad99c24f08
child 21 f9e827349359
--- a/photosgallery/viewframework/views/zoomview/src/glxzoomeventhandler.cpp	Tue May 25 12:42:31 2010 +0300
+++ b/photosgallery/viewframework/views/zoomview/src/glxzoomeventhandler.cpp	Wed Jun 09 09:41:51 2010 +0300
@@ -51,6 +51,10 @@
 
 const TInt KGlxPanInertiaFrameInmS      = 20000     ;
 
+//Zoom Factor to keep the relative Zoom Ratio 
+//same while changing orientation.
+const TInt KGlxNeutralZoomFactor = 100;
+
 using namespace GestureHelper;
 
 // ============================ CGlxZoomPanEventHandler===============================
@@ -842,8 +846,9 @@
     TRACER("CGlxZoomPanEventHandler::OrientationChanged ");
     
     iMathsEngine.OrientationChanged(aNewScreenRect);
-    iMinZoomRatio = iMathsEngine.MinimumZoomRatio(); 
-    Zoom(0, 0, iZoomMode) ;
+    iMinZoomRatio = iMathsEngine.MinimumZoomRatio();
+    //Keep the relative Zoom Ratio same while changing orientation
+    Zoom(0, KGlxNeutralZoomFactor, iZoomMode) ;
     }
 
 // -----------------------------------------------------------------------------