Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-99139

Canceled touch event is used while detecting double click event

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.2
    • None
    • Android (chromebook)
    • Android

    Description

      When a touch event immediately follows a canceled touch event, a double click event is generated for this sequence. 

      This occurs for example in the following case:

       - Perform a scroll operation using a two-finger gesture on the touchpad of a chromebook

       - Perform a single click. => This generates a new MotionEvent that is immediately cancelled, followed by the actual MotionEvent. As the two MotionEvent's are generated by the same user input, those two events occur inside a double click detection interval.

      Possible solution

      Resetting touchMousePressTimestamp inside QQuickWindowPrivate::deliverTouchCancelEvent fixes this issue:

      bool QQuickWindowPrivate::deliverTouchCancelEvent(QTouchEvent *event)
      {
          ...
          touchMousePressTimestamp = 0;
          ...
      }

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            m3197d - -
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes