Merge "Fix cursor position for ligatures and group of glyphs." into devel/master
authorPaul Wisbey <p.wisbey@samsung.com>
Tue, 20 Oct 2015 12:56:55 +0000 (05:56 -0700)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Tue, 20 Oct 2015 12:56:55 +0000 (05:56 -0700)
dali-toolkit/internal/controls/scrollable/item-view/item-view-impl.cpp

index 91a9f97..27054bd 100644 (file)
@@ -1184,7 +1184,10 @@ void ItemView::OnPan( const PanGesture& gesture )
 
       self.SetProperty(Toolkit::ItemView::Property::LAYOUT_POSITION, firstItemScrollPosition );
 
-      if( (firstItemScrollPosition >= 0.0f && currentOvershoot < 1.0f) || (firstItemScrollPosition >= mActiveLayout->GetMinimumLayoutPosition(mItemFactory.GetNumberOfItems(), layoutSize) && currentOvershoot > -1.0f) )
+      if( ( firstItemScrollPosition >= 0.0f &&
+            currentOvershoot < 1.0f ) ||
+          ( firstItemScrollPosition <= mActiveLayout->GetMinimumLayoutPosition(mItemFactory.GetNumberOfItems(), layoutSize) &&
+            currentOvershoot > -1.0f ) )
       {
         mTotalPanDisplacement += gesture.displacement;
       }