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

TapHandler goes in invalid state if it was released outside parent

    XMLWordPrintable

Details

    • 12f89fb8dda86c61277e3814912013873b1657e6 (qt/qtdeclarative/5.12.1)

    Description

      With the following source code:

      Rectangle {
          id: rectangle
      
          implicitWidth: 200
          implicitHeight: 200
          color: tapHandler.pressed ? "red" : "grey"
      
          TapHandler {
              id: tapHandler
      
              onCanceled: console.debug("onCanceled")
              gesturePolicy: TapHandler.DragThreshold
          }
      }
      

      you can get the following problems:

      • Press rectangle with mouse
      • Drag the mouse outside the rectangle
      • Release mouse
      • Try tap rectangle with finger (touch) now - It does not work, as long as you do not tap earlier with the mouse there

      or

      • Press rectangle with finger (touch)
      • Drag the finger outside the rectangle
      • Release finger
      • Try tap rectangle with mouse now - It does not work, as long as you do not tap earlier with the finger (touch) there

      Attachments

        Issue Links

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

          Activity

            People

              srutledg Shawn Rutledge
              permotion88 Karol Polak
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes