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

TapHandler: Stationary TouchPoint removes Explicit Grab

XMLWordPrintable

    • Android

      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.

        1. IMG_1980.MOV
          5.63 MB
          Michael Piendl
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes