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

Bad defaults for QScroller on Windows

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: P5: Not important P5: Not important
    • None
    • 5.7.0
    • None
    • Windows 8.1

      Comparing with scrolling on the other platforms (like iOS and Android), current defaults for QScroller overshoots extremely and scrolls with too much velocity. Properties provided below (taken from http://www.qtcentre.org/threads/57352-QScroller-speed-and-touch-screen) resembles other platforms. I think these properties deserves to be defaults compared to the current defaults.

      prop.setScrollMetric(QScrollerProperties::AxisLockThreshold, 0.66);
      prop.setScrollMetric(QScrollerProperties::ScrollingCurve, QEasingCurve(QEasingCurve::OutExpo));
      prop.setScrollMetric(QScrollerProperties::DecelerationFactor, 0.05);
      prop.setScrollMetric(QScrollerProperties::MaximumVelocity, 0.635);
      prop.setScrollMetric(QScrollerProperties::OvershootDragResistanceFactor, 0.33);
      prop.setScrollMetric(QScrollerProperties::OvershootScrollDistanceFactor, 0.33);
      prop.setScrollMetric(QScrollerProperties::SnapPositionRatio, 0.93);
      prop.setScrollMetric(QScrollerProperties::DragStartDistance, 0.001);
      

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            bdemirkir Berk Demirkir
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes