aboutsummaryrefslogtreecommitdiffstats
path: root/src/quick/items/qquickflickablebehavior_p.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/quick/items/qquickflickablebehavior_p.h')
-rw-r--r--src/quick/items/qquickflickablebehavior_p.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/quick/items/qquickflickablebehavior_p.h b/src/quick/items/qquickflickablebehavior_p.h
index d99fc988d1..ec43aaca7d 100644
--- a/src/quick/items/qquickflickablebehavior_p.h
+++ b/src/quick/items/qquickflickablebehavior_p.h
@@ -62,4 +62,11 @@
#define QML_FLICK_MULTIFLICK_MAXBOOST 3.0
#endif
+// Really slow flicks can be annoying.
+const qreal _q_MinimumFlickVelocity = 75.0;
+
+// If QQuickFlickablePrivate::wheelDeceleration (perhaps overridden via QT_QUICK_FLICKABLE_WHEEL_DECELERATION)
+// is greater than this, we switch to proportional wheel scrolling: no "acceleration" at all.
+const qreal _q_MaximumWheelDeceleration = 14999;
+
#endif //QQUICKFLICKABLEBEHAVIOR_H