summaryrefslogtreecommitdiffstats
path: root/src/declarative
diff options
context:
space:
mode:
authorMartin Jones <martin.jones@nokia.com>2009-08-28 06:56:05 (GMT)
committerMartin Jones <martin.jones@nokia.com>2009-08-28 06:56:05 (GMT)
commitc61b59a7d856b9c7783c87d2cccfc2ed913ef543 (patch)
tree43a1787aae620317f41afabb3eb2257b60ac564f /src/declarative
parentab643ba4d2193352302d237ae36e1246b5399176 (diff)
downloadQt-c61b59a7d856b9c7783c87d2cccfc2ed913ef543.zip
Qt-c61b59a7d856b9c7783c87d2cccfc2ed913ef543.tar.gz
Qt-c61b59a7d856b9c7783c87d2cccfc2ed913ef543.tar.bz2
Fix combined horizontal and vertical flicking
Diffstat (limited to 'src/declarative')
-rw-r--r--src/declarative/fx/qfxflickable.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/declarative/fx/qfxflickable.cpp b/src/declarative/fx/qfxflickable.cpp
index 07df799..27bfa27 100644
--- a/src/declarative/fx/qfxflickable.cpp
+++ b/src/declarative/fx/qfxflickable.cpp
@@ -142,7 +142,7 @@ void QFxFlickablePrivate::flickX(qreal velocity)
else
v = maxVelocity;
}
- _tl.clear();
+ _tl.reset(_moveX);
_tl.accel(_moveX, v, 500, maxDistance);
_tl.execute(fixupXEvent);
if (!flicked) {
@@ -151,7 +151,7 @@ void QFxFlickablePrivate::flickX(qreal velocity)
emit q->flickStarted();
}
} else {
- _tl.clear();
+ _tl.reset(_moveX);
fixupX();
}
}
@@ -178,7 +178,7 @@ void QFxFlickablePrivate::flickY(qreal velocity)
else
v = maxVelocity;
}
- _tl.clear();
+ _tl.reset(_moveY);
_tl.accel(_moveY, v, 500, maxDistance);
_tl.execute(fixupYEvent);
if (!flicked) {
@@ -187,7 +187,7 @@ void QFxFlickablePrivate::flickY(qreal velocity)
emit q->flickStarted();
}
} else {
- _tl.clear();
+ _tl.reset(_moveY);
fixupY();
}
}