Details
-
Bug
-
Resolution: Fixed
-
P4: Low
-
5.3.0 Beta1, 5.3.1
-
None
-
Qt 5.3 on X11
Description
Qt 5.3 introduces high-precision touchpad scrolling using XInput2 on X11. This breaks QtQuick's ScrollView and Flickable, however.
Run the following on X11 using 5.3 Beta
import QtQuick 2.1 import QtQuick.Controls 1.0 import QtQuick.Window 2.0 ApplicationWindow { width: 640 height: 480 ListView { anchors.fill: parent model: 250 delegate: Text { text: index } } }
and then on a notebook do a little bit longer flick. You can also wrap a QtQuick Controls ScrollView around the ListView. It will flick from index 0 to around 200 which is way too much. Even with a ScrollView which doesn't really have momentum, it scrolls to around 50. This works with a traditional Qt widget based applications where the scrolling is precise (does not scroll in deletage-heights but pixel-wise) and stops when lifting off the finger.
It seems as if the Flickable/ScrollView got the high-precision scroll events (ie. scroll 100 pixels) but interpreted them as mousewheel scroll 3 items per event (resulting in a 300 item scroll)
Attachments
Issue Links
- is duplicated by
-
QTBUG-56075 QML Flickable: high-precision trackpad scrolling is too fast
- Closed
- relates to
-
QTBUG-101268 ListView does not preserve its relative scrollbar position when window is restored down on Windows if height of ListView.header changes dynamically
- Closed
-
QTBUG-96227 Support high-resolution scrolling using libinput
- Closed
For Gerrit Dashboard: QTBUG-38570 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
214619,4 | Fix flickable with mouse-wheel | 5.11 | qt/qtdeclarative | Status: DEFERRED | -1 | 0 |
232807,2 | xcb: add qt.qpa.input.events logging of wheel events | 5.11 | qt/qtbase | Status: MERGED | +2 | 0 |
323604,9 | Kill Flickable's wheel momentum if angleDeltas not multiples of 120 | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
325773,2 | Kill Flickable's wheel momentum if angleDeltas not multiples of 120 | 6.0 | qt/qtdeclarative | Status: MERGED | +2 | 0 |