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

MouseArea stops working after OS steals release event

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.8.0
    • Fix Version/s: 5.9.4
    • Labels:
      None
    • Environment:
      iPad 2 (MC769BZ/A), running iOS 7.1 (11D167),
      iPad Air (A1474), running iOS 10.3
    • Commits:
      dd2657e30a42c269f47195d61a9fe8a5fff02912

      Description

      Using a QtQuick MouseArea on iOS, whenever the user presses the area (touch down) and the release (touch up) happens in a system context (if we press home on iOS or recent apps on Android, for instance) mouse area is stuck in pressed state forever, and stops responding to any touch events.

      I recorded this bug on a small 20s video, attached to this bug report.
      Also attached is the code I used for the test.

      What seems to happen is that, whenever MouseArea detects a pressed event (or touch down), it waits for the corresponding release event, but as we go out of the app context when doing a gesture on iOS, the release event is never received by mouseArea, and it remains forever waiting for the release event, in pressed state.

        Attachments

        1. MouseareaTest.mp4
          5.76 MB
          Luiggi Reffatti
        2. TestRect.qml
          2 kB
          Luiggi Reffatti

          Issue Links

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

            Activity

              People

              • Assignee:
                srutledg Shawn Rutledge
                Reporter:
                lmreffatti Luiggi Reffatti
              • Votes:
                3 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes