diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/gestures/browser/webview.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/gestures/browser/webview.cpp b/examples/gestures/browser/webview.cpp index 310c7d8..2eee119 100644 --- a/examples/gestures/browser/webview.cpp +++ b/examples/gestures/browser/webview.cpp @@ -329,6 +329,13 @@ void WebView::gestureEvent(QGestureEvent *event) QWebHitTestResult result = frame->hitTestContent(g->startPos()); if (!result.isNull()) m_currentPanFrame = result.frame(); + while (m_currentPanFrame && + m_currentPanFrame->scrollBarMinimum(Qt::Vertical) == 0 && + m_currentPanFrame->scrollBarMaximum(Qt::Vertical) == 0 && + m_currentPanFrame->scrollBarMinimum(Qt::Horizontal) == 0 && + m_currentPanFrame->scrollBarMaximum(Qt::Horizontal) == 0) { + m_currentPanFrame = m_currentPanFrame->parentFrame(); + } } } else { } |