X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fscrollable%2Fscroll-view%2Fscroll-view-wobble-effect-impl.cpp;h=c8c669b3baf7739e6d20f8787657eafa551eb049;hp=e21ef87f93c820cb8f0a2520703d9f553a23772f;hb=25798861cc281b2c86011ec099671f73a801f2b8;hpb=18088175cb55711d4675c6ea25b1b01022886be5 diff --git a/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-wobble-effect-impl.cpp b/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-wobble-effect-impl.cpp index e21ef87..c8c669b 100644 --- a/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-wobble-effect-impl.cpp +++ b/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-wobble-effect-impl.cpp @@ -231,10 +231,6 @@ void ScrollViewWobbleEffect::OnDetach(Toolkit::ScrollView& scrollView) void ScrollViewWobbleEffect::AttachActor(Actor actor) { - Property::Index propertyPosition = actor.GetPropertyIndex(Toolkit::ScrollView::SCROLL_POSITION_PROPERTY_NAME); - Property::Index propertyOvershootX = actor.GetPropertyIndex(Toolkit::ScrollView::SCROLL_OVERSHOOT_X_PROPERTY_NAME); - Property::Index propertyOvershootY = actor.GetPropertyIndex(Toolkit::ScrollView::SCROLL_OVERSHOOT_Y_PROPERTY_NAME); - // Create effect-overshoot property if not already created. Property::Index propertyEffectOvershoot = actor.GetPropertyIndex(Toolkit::ScrollViewWobbleEffect::EFFECT_OVERSHOOT); if(propertyEffectOvershoot == Property::INVALID_INDEX) @@ -246,9 +242,9 @@ void ScrollViewWobbleEffect::AttachActor(Actor actor) Constraint constraint = Constraint::New( propertyEffectOvershoot, Source(scrollView, mPropertyTime), - Source(actor, propertyPosition), - Source(actor, propertyOvershootX), - Source(actor, propertyOvershootY), + Source(actor, Toolkit::ScrollView::Property::SCROLL_POSITION), + Source(actor, Toolkit::ScrollView::Property::OVERSHOOT_X), + Source(actor, Toolkit::ScrollView::Property::OVERSHOOT_Y), ScrollViewWobbleEffectConstraint(*this) ); actor.ApplyConstraint(constraint); }