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

QWidget multitouch sometimes drops touch points

    XMLWordPrintable

Details

    • Linux/Wayland

    Description

      I have a QWebEngine widget application and sometimes if  3 or more fingers are used the browser reports in the javascript false touch information(TouchList, https://developer.mozilla.org/en-US/docs/Web/API/TouchEvent/touches)

      I think the cause is that in qapplication.cpp translateRawTouchEvent function disregards touch points which have no target. The target is set using findClosestTouchPointTarget but that failed because the closest touch point is in this case is one which hasn't set yet a target. This happens if, in case of 3 touch points(0-2), point 1 and point 2 are pressed simultaneously and are closest to each other. If each press is a single event everything works just fine.

      This has worked until commit: dad1e1494128ff963b2a38870c44081f493f1e54 ("Forward touchEvents to children inside QGraphicsProxyWidget') which changed the behavior for setting the target that this only happens if a valid closestWidget was found.

      Attachments

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

        Activity

          People

            srutledg Shawn Rutledge
            h4nn35 Johannes Pointner
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes