svn path=/trunk/KDE/kdelibs/; revision=1041323
This commit is contained in:
Marco Martin 2009-10-27 19:48:00 +00:00
parent 25d1f3f5b6
commit d86cac78e4

View File

@ -152,7 +152,7 @@ void KineticScrolling::mousePressEvent(QGraphicsSceneMouseEvent *event)
d->syncViewportRect();
d->cposition = -d->parent->property("scrollPosition").value<QPointF>();
if (d->cposition == QPointF(0, 0) &&
if (event && d->cposition == QPointF(0, 0) &&
d->viewportGeometry.width() + 2 >= d->contentsSize.width() &&
d->viewportGeometry.height() + 2 >= d->contentsSize.height()) {
event->ignore();