Welcome,
Guest
. Please
login
or
register
.
June 08, 2026, 09:27:39 PM
Home
Help
Search
Login
Register
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Is "UIScrollView.isDragging" working when Smooth Drag Start is off?
« previous
next »
Print
Pages: [
1
]
Author
Topic: Is "UIScrollView.isDragging" working when Smooth Drag Start is off? (Read 3282 times)
t_n
Newbie
Thank You
-Given: 0
-Receive: 0
Posts: 9
Is "UIScrollView.isDragging" working when Smooth Drag Start is off?
«
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
Logged
ArenMook
Administrator
Hero Member
Thank You
-Given: 337
-Receive: 1171
Posts: 22,128
Toronto, Canada
Re: Is "UIScrollView.isDragging" working when Smooth Drag Start is off?
«
Reply #1 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
(
)
;
}
Logged
Print
Pages: [
1
]
« previous
next »
Tasharen Entertainment Forum
»
Support
»
NGUI 3 Support
»
Is "UIScrollView.isDragging" working when Smooth Drag Start is off?