1
NGUI 3 Support / UIScrollView.onDragFinished is not called when centerOnChild exists
« on: April 17, 2017, 08:15:02 AM »
'onDragFinished' callback is never called when UIScrollView has centerOnChild object.
- else if (centerOnChild)
- {
- centerOnChild.Recenter();
- }
- else
- {
- if (mDragStarted && restrictWithinPanel && mPanel.clipping != UIDrawCall.Clipping.None)
- RestrictWithinBounds(dragEffect == DragEffect.None, canMoveHorizontally, canMoveVertically);
- if (mDragStarted && onDragFinished != null) onDragFinished();
- if (!mShouldMove && onStoppedMoving != null)
- onStoppedMoving();
- }
