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

MouseArea stops working after OS steals release event

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.9.4
    • 5.8.0
    • None
    • iPad 2 (MC769BZ/A), running iOS 7.1 (11D167),
      iPad Air (A1474), running iOS 10.3
    • dd2657e30a42c269f47195d61a9fe8a5fff02912

      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.

        1. MouseareaTest.mp4
          5.76 MB
          Luiggi Reffatti
        2. TestRect.qml
          2 kB
          Luiggi Reffatti
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes