Fix ItemView scroll issue while handling ScrollPositionIntervalReachedSignal 85/42885/4
authorRichard Huang <r.huang@samsung.com>
Fri, 3 Jul 2015 12:59:02 +0000 (13:59 +0100)
committerRichard Huang <r.huang@samsung.com>
Tue, 14 Jul 2015 14:16:23 +0000 (07:16 -0700)
Change-Id: I8b8d04fde2bf2471804020f1bd4e4006cc6c1112

dali-toolkit/internal/controls/scroll-bar/scroll-bar-impl.cpp
dali-toolkit/internal/controls/scrollable/item-view/item-view-impl.cpp

index 350ace5..d2b715f 100755 (executable)
@@ -434,7 +434,7 @@ void ScrollBar::OnPan( const PanGesture& gesture )
     if(itemView)
     {
       // Disable automatic refresh in ItemView during fast scrolling
-      GetImpl(itemView).SetRefreshEnabled(true);//!mIsPanning);
+      GetImpl(itemView).SetRefreshEnabled(!mIsPanning);
     }
   }
 }
index 13ab888..c70b792 100644 (file)
@@ -1628,7 +1628,10 @@ void ItemView::GetItemsRange(ItemRange& range)
 void ItemView::OnScrollPositionChanged( float position )
 {
   // Cancel scroll animation to prevent any fighting of setting the scroll position property.
-  RemoveAnimation(mScrollAnimation);
+  if(!mRefreshEnabled)
+  {
+    RemoveAnimation(mScrollAnimation);
+  }
 
   // Refresh the cache immediately when the scroll position is changed.
   DoRefresh(position, false); // No need to cache extra items.