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

DragHandler and its HandlerPoint don't make it easy to detect whether the point is pressed on a touchscreen

    XMLWordPrintable

Details

    Description

      PointHandler.point.position.x !== 0 is one workaround. It doesn't work for DragHandler.centroid.position because the centroid position isn't reset on release, at least not in 5.12.

      DragHandler.centroid.pressure and PointHandler.point.pressure stays at 0 unless the touchscreen has pressure-detecting capabilities. But maybe it should change to 1 in that case, if the point is being pressed at all; that could stand in for a boolean pressed property.

      I think before I was thinking that it's silly: if the point is there at all, then it's being pressed, because touchscreens don't detect hover. But it's not quite sensible if DragHandler and its centroid never change in any way when the DragHandler is released. The active property won't be true unless you're dragging.

      PointHandler.active is an easier workaround.

      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:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes