Check double tap when minimum scale is changed in the didChangeContentsSize().
authorEunmi Lee <eunmi15.lee@samsung.com>
Mon, 9 Sep 2013 02:19:34 +0000 (11:19 +0900)
committerGerrit Code Review <gerrit@gerrit.vlan144.tizendev.org>
Wed, 11 Sep 2013 08:53:06 +0000 (08:53 +0000)
[Title] Check double tap when minimum scale is changed in the didChangeContentsSize().
[Issue#] N_SE-49523
[Problem] The tap is not recognized in the WebApp when we do tap twice quickly.
[Cause] The two taps should be recognized correctly, but they are recognized as double tap
when Web App does not set the user-scalable to 0 and minimum scale is not defined in the viewport meta tag.
It is because the minimumScale value is calculated wrong only in the WVGA in this case.
[Solution] Check double tap when minimum scale is changed in the didChangeContentsSize().

Change-Id: If3a7891b2dc5b48aea982d0de837bdc8fb9254f0

Source/WebKit2/UIProcess/API/efl/PageClientImpl.cpp

index 666b7a2..51dc2f1 100755 (executable)
@@ -709,6 +709,9 @@ void PageClientImpl::didChangeContentsSize(const WebCore::IntSize size)
             && fabs(m_viewportConstraints.initialScale - m_viewportConstraints.minimumScale) < numeric_limits<float>::epsilon())
             m_viewportConstraints.initialScale = minimumScale;
         m_viewportConstraints.minimumScale = minimumScale;
+#if ENABLE(TIZEN_GESTURE)
+        m_viewImpl->setDoubleTapEnabled(userScalable());
+#endif
     }
 #else
     m_viewImpl->informContentsSizeChange(size);