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

TapHandler does not emit canceled consistently

    XMLWordPrintable

Details

    • 92b17fd766205c18f692be4f58a31d76d57758ae

    Description

      In case gesturePolicy is DragThreshold and the threshold is exceeded:

      It does not take an exclusive grab, so when you drag past the drag threshold, it does not receive QQuickPointerHandler::onGrabChanged(CancelGrabExclusive), and does not receive QQuickPointerHandler::onGrabChanged(CancelGrabPassive) either. So it seems that to be consistent, emitting the canceled signal will need to be a special case.

      (Noticed this while testing the tapHandler.qml manual test at some point)

      In case gesturePolicy is withinBounds and you drag outside the bounds: it receives QQuickPointerHandler::onGrabChanged(UngrabExclusive) which is also not the same as grab cancellation, but we can say the tap action has been canceled, and that's the intended meaning of the TapHandler.canceled signal.

      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
              srutledg Shawn Rutledge
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes