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 350ace5f4483f8e93696aef0cdfa167cc97eeb1e..d2b715fa03d773bb94d318bb1051a2289142ab8f 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 13ab8884104279a8c3ded427bc5df1c6fd2080ea..c70b7927e74fd40dc06a921d343cd5b489e742b7 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.