ssssh
svn path=/trunk/KDE/kdelibs/; revision=1153771
This commit is contained in:
parent
90c8d09d11
commit
fc92307f06
@ -224,6 +224,8 @@ void KineticScrolling::resetAnimation(QPointF finalPosition, int duration)
|
||||
|
||||
void KineticScrolling::mousePressEvent(QGraphicsSceneMouseEvent *event)
|
||||
{
|
||||
Q_UNUSED(event);
|
||||
|
||||
if (d->scrollAnimation->state() != QAbstractAnimation::Stopped) {
|
||||
d->scrollAnimation->stop();
|
||||
}
|
||||
@ -282,8 +284,8 @@ void KineticScrolling::wheelReleaseEvent(QGraphicsSceneWheelEvent *event)
|
||||
d->kinMovement = QPointF(0,0);
|
||||
|
||||
if((event->orientation() == Qt::Vertical) &&
|
||||
((event->delta() < 0) && d->canScroll(KineticScrollingPrivate::Down) ||
|
||||
(event->delta() > 0) && d->canScroll(KineticScrollingPrivate::Up))) {
|
||||
(((event->delta() < 0) && d->canScroll(KineticScrollingPrivate::Down)) ||
|
||||
((event->delta() > 0) && d->canScroll(KineticScrollingPrivate::Up)))) {
|
||||
d->kinMovement.setY(d->kinMovement.y() - event->delta());
|
||||
} else if ((event->orientation() == Qt::Vertical) ||
|
||||
(!d->canScroll(KineticScrollingPrivate::Down) &&
|
||||
|
Loading…
Reference in New Issue
Block a user