Just had a quick question; I was trying to subscribe to the OnDragStarted event since I need to know when the user is dragging or scrolling through my UIWrapContent.
When testing it, the function was not being called and I found that the event is only thrown if smoothDragStart is true. Was wondering if that is intended. My expectation would be the event would be thrown regardless of being set to smooth or precise.
Thanks in advanced.
Code snippet for reference:
public void Drag ()
{
if (enabled && NGUITools.GetActive(gameObject) && mShouldMove)
{
if (mDragID == -10) mDragID = UICamera.currentTouchID;
UICamera.currentTouch.clickNotification = UICamera.ClickNotification.BasedOnDelta;
// Prevents the drag "jump". Contributed by 'mixd' from the Tasharen forums.
if (smoothDragStart && !mDragStarted)
{
mDragStarted = true;
mDragStartOffset = UICamera.currentTouch.totalDelta;
if (onDragStarted != null) onDragStarted();
}
...