2D Toolkit Forum

2D Toolkit => Support => Topic started by: unfilet on November 21, 2013, 03:26:23 pm

Title: Add some features
Post by: unfilet on November 21, 2013, 03:26:23 pm
Please add to tk2dUIScrollableArea some events

Code: [Select]
public event System.Action<tk2dUIScrollableArea> OnScrollBegan;
public event System.Action<tk2dUIScrollableArea> OnScrollEnd;

private bool IsSwipeScrollingInProgress
    {
        get { return isSwipeScrollingInProgress; }
        set
        {
            isSwipeScrollingInProgress = value;

            if (isSwipeScrollingInProgress)
            {
                if (OnScrollBegan != null)
                    OnScrollBegan(this);
            }
            else
            {
                if (OnScrollEnd != null)
                    OnScrollEnd(this);
            }

        }
    }
Title: Re: Add some features
Post by: unikronsoftware on November 22, 2013, 11:55:15 am
Thanks for the patch. I've added this to the todo - I'll see how it fits into the other feature we're adding to the scrollable area before committing to adding it.