]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Only move the items if at least one direction is within the item size
authorPeter Penz <peter.penz19@gmail.com>
Mon, 30 Jan 2012 13:06:07 +0000 (14:06 +0100)
committerPeter Penz <peter.penz19@gmail.com>
Mon, 30 Jan 2012 15:52:06 +0000 (16:52 +0100)
src/kitemviews/kitemlistview.cpp

index a0820f7e50f4845b6c0bbc41f7540d8e9cdcfe67..263c04461eeff41d4b8cb355cf4fdf06bf378850 100644 (file)
@@ -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);