Put the test for the new API back in now that the requestCenterFitZoom
API has been put back in.
Revert "Revert "Add a test for the new requestCenterFitZoom api.""
This reverts commit 103e5768937c748adb06dd70b3f301775168c0d5.
diff --git a/samples/BrowserPlugin/jni/paint/PaintPlugin.cpp b/samples/BrowserPlugin/jni/paint/PaintPlugin.cpp
index 1ec86c2..71b9f24 100644
--- a/samples/BrowserPlugin/jni/paint/PaintPlugin.cpp
+++ b/samples/BrowserPlugin/jni/paint/PaintPlugin.cpp
@@ -302,8 +302,11 @@
m_isTouchActive = false;
gPathI.reset(m_touchPath);
return 1;
- }
+ } else if (kDoubleTap_ANPTouchAction == evt->data.touch.action) {
+ gWindowI.requestCenterFitZoom(inst());
+ return 1;
+ }
break;
}
case kMouse_ANPEventType: {