webengine/osswebengine/webkit/s60/webview/WebGestureInterface.cpp
branchRCL_3
changeset 58 220a17280356
parent 42 d39add9822e2
child 62 c711bdda59f4
--- a/webengine/osswebengine/webkit/s60/webview/WebGestureInterface.cpp	Fri Feb 19 23:55:03 2010 +0200
+++ b/webengine/osswebengine/webkit/s60/webview/WebGestureInterface.cpp	Fri Mar 12 15:48:51 2010 +0200
@@ -21,6 +21,8 @@
 #include "config.h"
 #include "../../bidi.h"
 #include <coemain.h>
+#include "brctl.h"
+#include <brctldefs.h>
 #include "WebGestureInterface.h"
 #include "WebView.h"
 #include "WebPointerEventHandler.h"
@@ -107,7 +109,12 @@
     gestureParams.SetEnabled(stmGesture::EGestureUidFlick, ETrue);
     gestureParams.SetEnabled(stmGesture::EGestureUidLongPress, ETrue);
 #ifdef BRDO_MULTITOUCH_ENABLED_FF
-    gestureParams.SetEnabled(stmGesture::EGestureUidPinch, ETrue);
+    if (m_webview->brCtl()->capabilities() & TBrCtlDefs::ECapabilityPinchZoom) {
+        gestureParams.SetEnabled(stmGesture::EGestureUidPinch, ETrue);
+    }
+    else {
+        gestureParams.SetEnabled(stmGesture::EGestureUidPinch, EFalse);
+    }
 #else
     gestureParams.SetEnabled(stmGesture::EGestureUidPinch, EFalse);
 #endif
@@ -165,3 +172,4 @@
 }
 
 
+