From: Peter Penz Date: Mon, 30 Jan 2012 13:06:07 +0000 (+0100) Subject: Only move the items if at least one direction is within the item size X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/03bed41e735d3f5ab26a406a3e5025c7023a4700 Only move the items if at least one direction is within the item size --- diff --git a/src/kitemviews/kitemlistview.cpp b/src/kitemviews/kitemlistview.cpp index a0820f7e5..263c04461 100644 --- a/src/kitemviews/kitemlistview.cpp +++ b/src/kitemviews/kitemlistview.cpp @@ -1457,8 +1457,8 @@ bool KItemListView::moveWidget(KItemListWidget* widget, const QPointF& newPos) const bool startMovingAnim = xMax <= 0 || yMax <= 0 - || qAbs(oldPos.x() - newPos.x()) <= xMax - || qAbs(oldPos.y() - newPos.y()) <= yMax; + || qAbs(oldPos.x() - newPos.x()) < xMax + || qAbs(oldPos.y() - newPos.y()) < yMax; if (startMovingAnim) { // The moving animation is done inside a column or a row. m_animation->start(widget, KItemListViewAnimation::MovingAnimation, newPos);