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

TapHandler: Stationary TouchPoint removes Explicit Grab

    XMLWordPrintable

Details

    • Android

    Description

      Edited: Analysis and Solution Idee in Comments

      HUAWEI Tablet does not support TOUCH as expected by TapHandler with GesturePolicy set to ReleaseWithinBounds. The pressed flag is set as expected, but the active flag (explicit grab) is not working reliable.

      Used device: HUAWEI MediaPad M3 Lite 10 (BAH-L09 / Android 7.0, EMUI 5.1.3)
      iPhones, Pixel and Sony Android Phones all work as expected.
       

      import QtQuick 2.13
      import QtQuick.Window 2.13
      
      Window {
          visible: true;  width: 100; height: 100
      
          Rectangle {
              anchors.fill: parent
      
              color: {
                  if(tapHandler.active)
                      return "red";
                  if(tapHandler.pressed)
                      return "yellow";
                  return "green";
              }
      
              TapHandler {
                  id: tapHandler
                  gesturePolicy: TapHandler.ReleaseWithinBounds
              }
          }
      }
      
      

      Video attached
      Left is a Pixel 3. Right is the HUAWEI. Expected is Green-Red. Yellow should never be visible.

      Attachments

        Issue Links

          Activity

            People

              srutledg Shawn Rutledge
              michl86 Michael Piendl
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: