Skip to content

Commit

Permalink
[qtwebkit] Reset pan gesture recognizer on touch begin if pan active
Browse files Browse the repository at this point in the history
  • Loading branch information
Raine Makelainen committed May 30, 2014
1 parent 30bf5f5 commit a107a96
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -463,8 +463,11 @@ void QtWebPageEventHandler::handleInputEvent(const QInputEvent* event)
switch (event->type()) {
case QEvent::MouseButtonPress:
case QEvent::TouchBegin:
m_viewportController->touchBegin();
if (m_panGestureRecognizer.isRecognized()) {
m_panGestureRecognizer.cancel();
}

m_viewportController->touchBegin();
// The page viewport controller might still be animating kinetic scrolling or a scale animation
// such as double-tap to zoom or the bounce back effect. A touch stops the kinetic scrolling
// where as it does not stop the scale animation.
Expand Down

0 comments on commit a107a96

Please sign in to comment.