+2012-01-27 Kenneth Rohde Christiansen <kenneth@webkit.org>
+
+ [Qt] Fade out tap highlighting when starting to pan
+ https://bugs.webkit.org/show_bug.cgi?id=77202
+
+ Reviewed by Simon Hausmann.
+
+ Basically we need to fade out the potential tap highlighting
+ when ever the gesture recognition fails or another gesture
+ is recognized. We do that with this change.
+
+ * UIProcess/qt/QtTapGestureRecognizer.cpp:
+ (WebKit::QtTapGestureRecognizer::QtTapGestureRecognizer):
+ (WebKit::QtTapGestureRecognizer::recognize):
+ (WebKit::QtTapGestureRecognizer::reset):
+
+ Remove reset as it does nothing but call code before the
+ event handler is installed.
+
2012-01-26 No'am Rosenthal <noam.rosenthal@nokia.com> and Jocelyn Turcotte <jocelyn.turcotte@nokia.com>
[Qt] WKTR: Use a software rendering pipiline when running tests.
: QtGestureRecognizer(eventHandler)
, m_tapState(NoTap)
{
- reset();
}
bool QtTapGestureRecognizer::recognize(const QTouchEvent* event, qint64 eventTimestampMillis)
break;
case QEvent::TouchEnd:
m_tapAndHoldTimer.stop();
+ m_eventHandler->handlePotentialSingleTapEvent(QTouchEvent::TouchPoint());
switch (m_tapState) {
case DoubleTapCandidate:
break;
}
- if (m_tapState == NoTap)
- m_eventHandler->handlePotentialSingleTapEvent(QTouchEvent::TouchPoint());
-
return false;
}
void QtTapGestureRecognizer::reset()
{
+ m_eventHandler->handlePotentialSingleTapEvent(QTouchEvent::TouchPoint());
+
m_tapState = NoTap;
m_touchBeginEventForTap.clear();
m_tapAndHoldTimer.stop();