when a moveevent occurs, is not by the animation, that sets the geometry instead, so we can safely use it to notice when somebody else has moved the contents by had. is really important in this case to immediately stop the animation

svn path=/trunk/KDE/kdelibs/; revision=1094135
This commit is contained in:
Marco Martin 2010-02-22 09:36:20 +00:00
parent 2e5064ca2f
commit 2b9a4f4e63

View File

@ -378,6 +378,11 @@ bool KineticScrolling::eventFilter(QObject *watched, QEvent *event)
return false;
}
if (event->type() == QEvent::GraphicsSceneMove) {
d->scrollAnimation->stop();
return false;
}
bool notBlocked = true;
if (d->multitouchGesture == KineticScrollingPrivate::GestureNone &&
d->parent && d->parent->scene()) {