Changeset 110058 in webkit


Ignore:
Timestamp:
Mar 7, 2012 8:56:24 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[Qt] REGRESSION(r109575) Broke tap-to-zoom gesture
https://bugs.webkit.org/show_bug.cgi?id=80425

Patch by Dinu Jacob <dinu.jacob@nokia.com> on 2012-03-07
Reviewed by Simon Hausmann.

Set startScreenPos in mock touch point

  • MiniBrowser/qt/MiniBrowserApplication.cpp:

(MiniBrowserApplication::notify):

  • MiniBrowser/qt/MiniBrowserApplication.h:

(MiniBrowserApplication):

Location:
trunk/Tools
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r110054 r110058  
     12012-03-07  Dinu Jacob  <dinu.jacob@nokia.com>
     2
     3        [Qt] REGRESSION(r109575) Broke tap-to-zoom gesture
     4        https://bugs.webkit.org/show_bug.cgi?id=80425
     5
     6        Reviewed by Simon Hausmann.
     7
     8        Set startScreenPos in mock touch point
     9
     10        * MiniBrowser/qt/MiniBrowserApplication.cpp:
     11        (MiniBrowserApplication::notify):
     12        * MiniBrowser/qt/MiniBrowserApplication.h:
     13        (MiniBrowserApplication):
     14
    1152012-03-07  Simon Hausmann  <simon.hausmann@nokia.com>
    216
  • trunk/Tools/MiniBrowser/qt/MiniBrowserApplication.cpp

    r109576 r110058  
    160160                touchPoint.setState(Qt::TouchPointPressed);
    161161                touchType = QEvent::TouchBegin;
     162                m_startScreenPos = mouseEvent->screenPos();
    162163            }
    163164            break;
     
    193194        }
    194195
     196        // Set the screen pos as the scene pos as canvas translates the touch events.
     197        touchPoint.setStartScenePos(m_startScreenPos);
     198
    195199        // Update current touch-point
    196200        m_touchPoints.insert(touchPoint.id(), touchPoint);
  • trunk/Tools/MiniBrowser/qt/MiniBrowserApplication.h

    r109575 r110058  
    112112    QPointF m_lastPos;
    113113    QPointF m_lastScreenPos;
     114    QPointF m_startScreenPos;
    114115
    115116    QHash<int, QTouchEvent::TouchPoint> m_touchPoints;
Note: See TracChangeset for help on using the changeset viewer.