┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Penz <[email protected]>2012-01-30 14:06:07 +0100
committerPeter Penz <[email protected]>2012-01-30 14:07:28 +0100
commit670655f448b25a53f075ed1e61e64ab85deaee12 (patch)
tree7d7c976a785f7a5ad9d5903356d0e84cf0fd3756
parent832b647c537bb520244d1222a4fb6440fe7024a6 (diff)
Only move the items if at least one direction is within the item size
-rw-r--r--src/kitemviews/kitemlistview.cpp4
1 files changed, 2 insertions, 2 deletions
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);