1
NGUI 3 Support / Issue with onDragFinished in UIScrollView and UICenterOnChild
« on: October 08, 2014, 11:33:15 AM »
Hi,
I have a problem assigning an OnDragFinished-Handler with:
because there is another OnDragFinished in UICenterOnChild which is assigned in Recenter line 85 via "=".
This overrides my delegate call and my own OnDragFinished is never called.
I can fix it if I add a "+=" in line 85 but I don't know if that's the right approach.
NGUI: 3.7.4
I appreciate your help.
I have a problem assigning an OnDragFinished-Handler with:
- scrollView.onDragFinished += OnDragFinished; //in my Start())
because there is another OnDragFinished in UICenterOnChild which is assigned in Recenter line 85 via "=".
This overrides my delegate call and my own OnDragFinished is never called.
I can fix it if I add a "+=" in line 85 but I don't know if that's the right approach.
NGUI: 3.7.4
I appreciate your help.
