Changeset 92799 in webkit
- Timestamp:
- Aug 10, 2011, 2:51:53 PM (14 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r92792 r92799 1 2011-08-10 Benjamin Poulain <benjamin@webkit.org> 2 3 [Qt][WK2] MiniBrowser is firing twice the QDesktopWebView::mousePressEvent method 4 https://bugs.webkit.org/show_bug.cgi?id=65875 5 6 Reviewed by Kenneth Rohde Christiansen. 7 8 For some reason, QWidget send fake mouse event on some platform, under certains conditions. 9 10 This causes mouse events to be sent twice in some cases. We work around the problem 11 by defining the first touch point to be a primary touch point (case which hit some 12 weird condition in QWidget, skipping the generation of fake mouse events). 13 14 * MiniBrowser/qt/MiniBrowserApplication.cpp: 15 (MiniBrowserApplication::notify): 16 1 17 2011-08-10 David Hyatt <hyatt@apple.com> 2 18 -
trunk/Tools/MiniBrowser/qt/MiniBrowserApplication.cpp
r91667 r92799 130 130 } 131 131 132 QList<QTouchEvent::TouchPoint> touchPoints = m_touchPoints.values(); 133 QTouchEvent::TouchPoint& firstPoint = touchPoints.first(); 134 firstPoint.setState(firstPoint.state() | Qt::TouchPointPrimary); 132 135 m_sendingFakeTouchEvent = true; 133 qt_translateRawTouchEvent(0, QTouchEvent::TouchScreen, m_touchPoints.values());136 qt_translateRawTouchEvent(0, QTouchEvent::TouchScreen, touchPoints); 134 137 m_sendingFakeTouchEvent = false; 135 138
Note:
See TracChangeset
for help on using the changeset viewer.