From: jonghyun.ho Date: Thu, 12 Jun 2014 05:31:46 +0000 (+0900) Subject: Add some logs to find out cause of once happened scrollview issue #2 X-Git-Tag: dali_1.0.0~55 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=commitdiff_plain;h=72174587b3f5c4ac17a96d38fb5b3969e06b562a Add some logs to find out cause of once happened scrollview issue #2 Change-Id: Ife0241d7258973eeaf59c3853e698b2a1c400949 Signed-off-by: Adeel Kazmi --- diff --git a/base/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.cpp b/base/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.cpp index 9cabbf0..8b51d82 100644 --- a/base/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.cpp +++ b/base/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.cpp @@ -1267,6 +1267,8 @@ void ScrollView::TransformTo(const Vector3& position, const Vector3& scale, floa Self().SetProperty(mPropertyScrolling, true); mScrolling = true; + + DALI_LOG_SCROLL_STATE("[0x%X] mScrollStartedSignalV2 1 [%.2f, %.2f]", this, currentScrollPosition.x, currentScrollPosition.y); mScrollStartedSignalV2.Emit( currentScrollPosition ); bool animating = AnimateTo(-position, Vector3::ONE * duration, @@ -1815,6 +1817,7 @@ bool ScrollView::AnimateTo(const Vector3& position, const Vector3& positionDurat snapEvent.rotation = rotation; snapEvent.duration = totalDuration; + DALI_LOG_SCROLL_STATE("[0x%X] mSnapStartedSignalV2 [%.2f, %.2f]", this, snapEvent.position.x, snapEvent.position.y); mSnapStartedSignalV2.Emit( snapEvent ); return (mScrollStateFlags & SCROLL_ANIMATION_FLAGS) != 0; @@ -2525,6 +2528,7 @@ void ScrollView::OnGestureEx(Gesture::State state) Vector3 currentScrollPosition = GetCurrentScrollPosition(); Self().SetProperty(mPropertyScrolling, true); mScrolling = true; + DALI_LOG_SCROLL_STATE("[0x%X] mScrollStartedSignalV2 2 [%.2f, %.2f]", this, currentScrollPosition.x, currentScrollPosition.y); mScrollStartedSignalV2.Emit( currentScrollPosition ); } else if( (state == Gesture::Finished) ||