Changeset 147909 in webkit
- Timestamp:
- Apr 8, 2013 4:13:20 AM (11 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r147878 r147909 1 2013-04-08 Andras Becsi <andras.becsi@digia.com> 2 3 [Qt][WK2] WebView's interactive property is not fully respected 4 https://bugs.webkit.org/show_bug.cgi?id=113066 5 6 Reviewed by Jocelyn Turcotte. 7 8 WK2 sign-off by Benjamin Poulain. 9 10 The QML WebView inherits the "interactive" property from Flickable 11 which is true by default, and disables the interaction with the 12 Flickable if set to false. 13 Resulting from the design of the WebView panning and flicking is 14 disabled by Flickable but to be consistent we also need to disable 15 double-tap gestures and pinch gestures since they would trigger 16 scale and position changes. 17 18 * UIProcess/qt/PageViewportControllerClientQt.cpp: 19 (WebKit::PageViewportControllerClientQt::pinchGestureStarted): 20 (WebKit::PageViewportControllerClientQt::pinchGestureRequestUpdate): 21 (WebKit::PageViewportControllerClientQt::pinchGestureEnded): 22 * UIProcess/qt/QtWebPageEventHandler.cpp: 23 (WebKit::QtWebPageEventHandler::handleDoubleTapEvent): 24 1 25 2013-04-07 David Kilzer <ddkilzer@apple.com> 2 26 -
trunk/Source/WebKit2/UIProcess/qt/PageViewportControllerClientQt.cpp
r146356 r147909 431 431 ASSERT(m_touchInteraction.inProgress()); 432 432 433 if (!m_controller->allowsUserScaling() )433 if (!m_controller->allowsUserScaling() || !m_viewportItem->isInteractive()) 434 434 return; 435 435 … … 443 443 void PageViewportControllerClientQt::pinchGestureRequestUpdate(const QPointF& pinchCenterInViewportCoordinates, qreal totalScaleFactor) 444 444 { 445 if (!m_controller->allowsUserScaling() || !m_viewportItem->isInteractive()) 446 return; 447 445 448 ASSERT(m_scaleChange.inProgress()); 446 447 if (!m_controller->allowsUserScaling())448 return;449 450 449 ASSERT(m_pinchStartScale > 0); 451 450 // Changes of the center position should move the page even if the zoom factor does not change. … … 465 464 void PageViewportControllerClientQt::pinchGestureEnded() 466 465 { 466 if (m_pinchStartScale < 0) 467 return; 468 467 469 ASSERT(m_scaleChange.inProgress()); 468 469 if (!m_controller->allowsUserScaling())470 return;471 472 470 m_pinchStartScale = -1; 473 471 -
trunk/Source/WebKit2/UIProcess/qt/QtWebPageEventHandler.cpp
r146914 r147909 272 272 void QtWebPageEventHandler::handleDoubleTapEvent(const QTouchEvent::TouchPoint& point) 273 273 { 274 if (!m_webView->isInteractive()) 275 return; 276 274 277 deactivateTapHighlight(); 275 278 QTransform fromItemTransform = m_webPage->transformFromItem();
Note: See TracChangeset
for help on using the changeset viewer.