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

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

    XMLWordPrintable

Details

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

    Description

      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).

      Attachments

        1. xinput_list.txt
          5 kB
        2. QTBUG-40829.tgz
          0.7 kB
        3. events.txt
          2 kB
        4. devices.txt
          0.6 kB

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes