Merge "DALi Version 1.0.25" into tizen dali_1.0.25
authorPaul Wisbey <p.wisbey@samsung.com>
Thu, 15 Jan 2015 13:51:29 +0000 (05:51 -0800)
committerGerrit Code Review <gerrit@review.vlan103.tizen.org>
Thu, 15 Jan 2015 13:51:29 +0000 (05:51 -0800)
base/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.cpp

index 73e3453..7522766 100644 (file)
@@ -1578,7 +1578,12 @@ bool ScrollView::SnapWithVelocity(Vector2 velocity)
       }
     }
   }
-  positionSnap += clampDelta;
+
+  if(IsScrollComponentEnabled(Toolkit::Scrollable::OvershootIndicator))
+  {
+    // Scroll to the end of the overshoot only when overshoot is enabled.
+    positionSnap += clampDelta;
+  }
 
   bool animating = AnimateTo(positionSnap, positionDuration,
                              alphaFunction, false,