g_ScrollView.Add(actor);
actor.SetPosition(SCROLL_VIEW_TEST_ACTOR_POSITION);
- //ScrollTo [400.0f 400.0f]
- g_ScrollView.ScrollTo(Vector2( SCROLL_TARGET_Y, SCROLL_TARGET_Y ), SCROLL_DURATION);
+ //ScrollTo [150.0f 150.0f]
+ g_ScrollView.ScrollTo(SCROLL_TARGET_2, SCROLL_DURATION);
}
void VTScrollViewActorAutoSnap001()
{
- DALI_CHECK_FAIL(g_ScrollView.GetCurrentScrollPosition() != Vector2( SCROLL_TARGET_Y, SCROLL_TARGET_Y ) , " ScrollTo is failed");
+ DALI_CHECK_FAIL(g_ScrollView.GetCurrentScrollPosition() != SCROLL_TARGET_2, " ScrollTo is failed");
+
+ g_ScrollView.SetScrollSnapDuration(0.1f);
//Try to snap without enabling true
g_ScrollView.ScrollToSnapPoint();
}
void VTScrollViewActorAutoSnap002()
{
- DALI_CHECK_FAIL(g_ScrollView.GetCurrentScrollPosition() != Vector2( SCROLL_TARGET_Y, SCROLL_TARGET_Y ) ,
+ DALI_CHECK_FAIL(g_ScrollView.GetCurrentScrollPosition() != SCROLL_TARGET_2,
"Should not execute snap without enabling true.");
//Try to snap with enabling true
gScrollView.Add(actor);
actor.SetPosition(SCROLL_VIEW_TEST_ACTOR_POSITION);
- //ScrollTo [400.0f 400.0f]
- gScrollView.ScrollTo(Vector2( SCROLL_TARGET_Y, SCROLL_TARGET_Y ), SCROLL_DURATION);
+ //ScrollTo [150.0f 150.0f]
+ gScrollView.ScrollTo(SCROLL_TARGET_2, SCROLL_DURATION);
}
// * ############################## Verdict test for ScrollViewActorAutoSnap
void VTScrollViewActorAutoSnap001()
{
- DALI_CHECK_FAIL(gScrollView.GetCurrentScrollPosition() != Vector2( SCROLL_TARGET_Y, SCROLL_TARGET_Y ) , " ScrollTo is failed");
+ DALI_CHECK_FAIL(gScrollView.GetCurrentScrollPosition() != SCROLL_TARGET_2, " ScrollTo is failed");
+
+ gScrollView.SetScrollSnapDuration(0.1f);
//Try to snap without enabling true
gScrollView.ScrollToSnapPoint();
}
void VTScrollViewActorAutoSnap002()
{
- DALI_CHECK_FAIL(gScrollView.GetCurrentScrollPosition() != Vector2( SCROLL_TARGET_Y, SCROLL_TARGET_Y ) , "Should not execute snap without enabling true.");
+ DALI_CHECK_FAIL(gScrollView.GetCurrentScrollPosition() != SCROLL_TARGET_2, "Should not execute snap without enabling true.");
//Try to snap with enabling true
gScrollView.SetActorAutoSnap(true);