Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: t_n on July 15, 2014, 01:43:38 AM

Title: Is "UIScrollView.isDragging" working when Smooth Drag Start is off?
Post by: t_n on July 15, 2014, 01:43:38 AM
Hi,

I'm wondering if "UIScrollView.isDragging" is working when Smooth Drag Start is off.

I think it's not, because

  1. mDragStarted = true;

is inside

  1. smoothDragStart && !mDragStarted
Title: Re: Is "UIScrollView.isDragging" working when Smooth Drag Start is off?
Post by: ArenMook on July 15, 2014, 08:06:23 PM
Add this code in the UIScrollView.Press function inside the "if (pressed)" section:
  1.                                 if (!smoothDragStart)
  2.                                 {
  3.                                         mDragStarted = true;
  4.                                         mDragStartOffset = Vector2.zero;
  5.                                         if (onDragStarted != null) onDragStarted();
  6.                                 }