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

QWheelEvent incorrect angleDelta() value with both mouse wheel and touchpad scroll

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.4.2
    • 5.3.1
    • QPA: X11/XCB
    • None
    • openSUSE 13.1 x86_64 with Qt 5.3.1.

      If mouse wheel scrolling and touchpad scrolling are used (simultaneously or by turns), touchpad QWheelEvent after mouse QWheelEvent produces strange angleDelta() value (and pixelDelta() as well).

      Simple code in wheelEvent():
      qDebug() << "wheelEvent:" << event->phase() << event->angleDelta() << event->pixelDelta();

      Begin slowly scroll with touchpad, and while this scroll mouse wheel. Output: http://pastebin.com/kzt4ycm2

      Line 8 — mouse scroll, Line 9 — strange touchpad event.

      Somewtimes this values aren't big, sometimes too big (more than 1000).

        1. QTBUG-40829.tgz
          0.7 kB
          Shawn Rutledge
        2. devices.txt
          0.6 kB
          Mykola Krachkovsky
        3. xinput_list.txt
          5 kB
          Mykola Krachkovsky
        4. events.txt
          2 kB
          Mykola Krachkovsky
        For Gerrit Dashboard: QTBUG-40829
        # Subject Branch Project Status CR V

            Unassigned Unassigned
            nicklion Mykola Krachkovsky
            Votes:
            2 Vote for this issue
            Watchers:
            10 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes