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

QScroller::TouchGesture is misdocumented to take effect with touchpad

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.5, 6.8, 6.9
    • None
    • Linux/Wayland, Linux/X11, Windows

      It says:

      The gesture recognizer will only trigger on touch events. Specifically it will react on single touch points when using a touch screen and dual touch points when using a touchpad.

      But this doesn't seem to be the true on at least Windows, Wayland and X11. QScroller uses QFlickGestureRecognizer under the hood which in turn handles only QEvent::Touch

      {Begin,Update,End}

      (and mouse move events with a pressed button what is unrelated to TouchGesture) while touchpads send QWheelEvent. On Wayland touchpads send QWheelEvent with a scroll phase defined while on Windows and X11 they don't provide scroll phase and are indistinguishable from mouse scroll events.

      This causes a prolonged confusion as could be seen from QTBUG-84588 and https://www.qtcentre.org/threads/55778-Scrolling-using-QScroller-class.

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

            vestbo Tor Arne Vestbø
            ilya-fedin Ilya Fedin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes