Hello Guest

Author Topic: Add some features  (Read 3879 times)

unfilet

  • Newbie
  • *
  • Posts: 6
    • View Profile
Add some features
« 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);
            }

        }
    }

unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Add some features
« Reply #1 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.