2D Toolkit Forum
2D Toolkit => Support => Topic started by: unfilet on November 21, 2013, 03:26:23 pm
-
Please add to tk2dUIScrollableArea some events
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);
}
}
}
-
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.