[Webkit-unassigned] [Bug 78458] New: QWebPagePrivate::leaveEvent(QEvent*) implement error
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Feb 12 22:21:40 PST 2012
https://bugs.webkit.org/show_bug.cgi?id=78458
Summary: QWebPagePrivate::leaveEvent(QEvent*) implement error
Product: WebKit
Version: 528+ (Nightly build)
Platform: PC
OS/Version: Windows 7
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: Event Handling
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: clcarwin at gmail.com
Original source:
//source
QMouseEvent fakeEvent(QEvent::MouseMove, QCursor::pos(), Qt::NoButton, Qt::NoButton, Qt::NoModifier);
QCursor::pos() is in the screen coordinate system. We'd better change to:
//source
QMouseEvent fakeEvent(QEvent::MouseMove, this->view.value->mapFromGlobal(QCursor::pos()), Qt::NoButton, Qt::NoButton, Qt::NoModifier);
This is not the best modify method. Some times leaveEvent happen, but mouse's pos is still in webpage, such as lost focus. So I suggest modify to make sure mouse move outside of the widget:
//source
QMouseEvent fakeEvent(QEvent::MouseMove, QPoint(-1,-1), Qt::NoButton, Qt::NoButton, Qt::NoModifier);
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list