diff options
Diffstat (limited to 'Source/WebKit/qt/WidgetApi/qwebpage.cpp')
-rw-r--r-- | Source/WebKit/qt/WidgetApi/qwebpage.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/WebKit/qt/WidgetApi/qwebpage.cpp b/Source/WebKit/qt/WidgetApi/qwebpage.cpp index 442cc4874..25777d8c0 100644 --- a/Source/WebKit/qt/WidgetApi/qwebpage.cpp +++ b/Source/WebKit/qt/WidgetApi/qwebpage.cpp @@ -912,6 +912,10 @@ void QWebPagePrivate::dropEvent(T *ev) void QWebPagePrivate::leaveEvent(QEvent*) { + // If a mouse button is pressed we will continue to receive mouse events after leaving the window. + if (mousePressed) + return; + // Fake a mouse move event just outside of the widget, since all // the interesting mouse-out behavior like invalidating scrollbars // is handled by the WebKit event handler's mouseMoved function. |