src/hbwidgets/itemviews/hbabstractitemview_p.cpp
changeset 5 627c4a0fd0e7
parent 2 06ff229162e9
child 6 c3690ec91ef8
--- a/src/hbwidgets/itemviews/hbabstractitemview_p.cpp	Thu May 27 13:10:59 2010 +0300
+++ b/src/hbwidgets/itemviews/hbabstractitemview_p.cpp	Fri Jun 11 13:58:22 2010 +0300
@@ -390,6 +390,7 @@
                             mPreviousSelectedIndex = itemIndex;
                             mPreviousSelectedCommand = command;
                             mSelectionModel->select(itemIndex, command);
+                            HbWidgetFeedback::triggered(q, Hb::InstantSelectionChanged, Hb::ModifierScrolling);
                         }
 
                         // check if we need to start or keep on scrolling
@@ -508,13 +509,7 @@
     QModelIndex lastVisibleModelIndex;
     mContainer->firstAndLastVisibleModelIndex(firstVisibleModelIndex, lastVisibleModelIndex);
 
-    if (mModelIterator->model()) {
-        if (lastVisibleModelIndex == mModelIterator->index(mModelIterator->indexCount() - 1)) {
-            mVisibleIndex = lastVisibleModelIndex;
-        } else {
-            mVisibleIndex = firstVisibleModelIndex;
-        }
-    }
+    mVisibleIndex = firstVisibleModelIndex;
 }
 
 /*!