if the widget can't scroll neither up or down, don't attempt to bounce
svn path=/trunk/KDE/kdelibs/; revision=1051560
This commit is contained in:
parent
ea0494d0fb
commit
3b7483877d
@ -146,6 +146,11 @@ void KineticScrolling::overshoot()
|
|||||||
{
|
{
|
||||||
QPointF scrollPosition = -d->parent->property("scrollPosition").value<QPointF>();
|
QPointF scrollPosition = -d->parent->property("scrollPosition").value<QPointF>();
|
||||||
|
|
||||||
|
if (!d->canScroll(KineticScrollingPrivate::Down) &&
|
||||||
|
!d->canScroll(KineticScrollingPrivate::Up)) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (d->bounceStatus != KineticScrollingPrivate::Running) {
|
if (d->bounceStatus != KineticScrollingPrivate::Running) {
|
||||||
if ((d->cposition.y() > 0 ) || (d->cposition.y() <= d->minimum.y() + d->overshoot)) {
|
if ((d->cposition.y() > 0 ) || (d->cposition.y() <= d->minimum.y() + d->overshoot)) {
|
||||||
QPointF finalPosition;
|
QPointF finalPosition;
|
||||||
|
Loading…
Reference in New Issue
Block a user