diff options
Diffstat (limited to 'qkineticscroller_p.h')
-rw-r--r-- | qkineticscroller_p.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/qkineticscroller_p.h b/qkineticscroller_p.h index 1f5a564..ccaee6d 100644 --- a/qkineticscroller_p.h +++ b/qkineticscroller_p.h @@ -119,7 +119,6 @@ public: bool enabled; QKineticScroller::State state; QKineticScroller::OvershootPolicy overshootPolicy; - QPointF velocity; QPointF oldVelocity; QPointF pressPosition; @@ -127,12 +126,13 @@ public: qint64 pressTimestamp; qint64 lastTimestamp; - QPointF dragDistance; + QPointF dragDistance; // the distance we should move during the next drag timer event QPointF scrollToPosition; bool scrollToX; bool scrollToY; + QPointF overshootPosition; // the number of pixels we are overshooting (before overshootDragResistanceFactor) bool overshootX; bool overshootY; @@ -140,8 +140,8 @@ public: QElapsedTimer scrollRelativeTimer; QElapsedTimer scrollAbsoluteTimer; - QPointF releaseVelocity; - QPointF overshootVelocity; + QPointF releaseVelocity; // the starting velocity of the scrolling state + QPointF overshootVelocity; // the starting velocity when going into overshoot qreal overshootStartTimeX; qreal overshootStartTimeY; int timerId; |