Scroll to the end of overshoot only when overshoot is enabled 78/33778/1
authorRichard Huang <r.huang@samsung.com>
Wed, 14 Jan 2015 16:14:22 +0000 (16:14 +0000)
committerRichard Huang <r.huang@samsung.com>
Wed, 14 Jan 2015 16:14:22 +0000 (16:14 +0000)
Change-Id: I9e2881dc5d52c28d13ec7dd132ed3c0cc570baed

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,