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
mDragStarted
=
true
;
is inside
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:
if
(
!
smoothDragStart
)
{
mDragStarted
=
true
;
mDragStartOffset
=
Vector2
.
zero
;
if
(
onDragStarted
!=
null
)
onDragStarted
(
)
;
}