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

QML Flickable keeps grabbing mouse after 5 pixel press/move/release mouse sequenze

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4: Low
    • Resolution: Done
    • Affects Version/s: 4.8.1, 4.8.2
    • Fix Version/s: 4.8.7, 5.4.0
    • Labels:
      None
    • Environment:
      Mac, Linux (On different machines)
    • Commits:
      bfa0be8 (qt4), 579b773 (qtquick1) and 0a43c56 (qtdeclarative)

      Description

      The setup is simplified this: Flickable { Rectangle { MouseArea {} } }. When the user pressed the mouse, moves 5 pixel and releases the mouse the mouse area get's a press/cancel sequenze. The next press/release is grabbed by the flickable. I have attached a short unit test with different good and bad sequences.

      (mouse positioned on mouse area)
      // sequenze 1
      1. mouse down
      2. mouse move 5px # more pixels will also be bad, less pixels will be okay
      3. mouse up
      // sequenze 2: will be grabbed away by the flickable
      4. mouse down
      5. mouse up

      The distance is direct depending on the QApplication::startDragDistance().

      In the bad case the scene retains a mouseGrabberItem() which should not be the case in my understanding as after the release the next click should go to the mouse area.

        Attachments

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

          Activity

            People

            Assignee:
            rgriebl Robert Griebl
            Reporter:
            jryannel2 Juergen Bocklage-Ryannel (ghost) (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes