1
NGUI 3 Support / UIScrollview scroll offset
« on: May 06, 2015, 10:53:33 AM »
Hi everyone.
I've got a UIScrollview and in that scrollview i want to implement a pull to refresh function.
i've added the onDragStart and onDragFinish Event to my script but i can't find a way to calculate/obtain the offset when the user ends to drag. Does anyone have any suggestions ?
my goal is to introduce a threshold so reload function is called only when the offset is bigger than threshold
thanks in advance
I've got a UIScrollview and in that scrollview i want to implement a pull to refresh function.
i've added the onDragStart and onDragFinish Event to my script but i can't find a way to calculate/obtain the offset when the user ends to drag. Does anyone have any suggestions ?
my goal is to introduce a threshold so reload function is called only when the offset is bigger than threshold
thanks in advance




