diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/webenginequick/render_widget_host_view_qt_delegate_quick.cpp | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/webenginequick/render_widget_host_view_qt_delegate_quick.cpp b/src/webenginequick/render_widget_host_view_qt_delegate_quick.cpp index 7a9fa86b2..c2f168a99 100644 --- a/src/webenginequick/render_widget_host_view_qt_delegate_quick.cpp +++ b/src/webenginequick/render_widget_host_view_qt_delegate_quick.cpp @@ -250,12 +250,14 @@ void RenderWidgetHostViewQtDelegateQuick::wheelEvent(QWheelEvent *event) void RenderWidgetHostViewQtDelegateQuick::touchEvent(QTouchEvent *event) { QQuickItem *parent = parentItem(); - if (event->type() == QEvent::TouchBegin && !m_isPopup - && (parent && parent->property("activeFocusOnPress").toBool())) - forceActiveFocus(); - if (parent && !parent->property("activeFocusOnPress").toBool() && !parent->hasActiveFocus()) { - event->ignore(); - return; + if (!m_isPopup && parent) { + if (event->type() == QEvent::TouchBegin && parent->property("activeFocusOnPress").toBool()) + forceActiveFocus(); + + if (!parent->property("activeFocusOnPress").toBool() && !parent->hasActiveFocus()) { + event->ignore(); + return; + } } m_client->forwardEvent(event); } |