scrolling = false;
this.InterceptTouchEvent -= OnInterruptTouchingChildTouched;
- ScrollEventArgs eventArgs = new ScrollEventArgs(ContentContainer.CurrentPosition);
+ ScrollEventArgs eventArgs = new ScrollEventArgs((ContentContainer != null) ? ContentContainer.CurrentPosition : Position.Zero);
ScrollAnimationEnded?.Invoke(this, eventArgs);
EmitScrollFinishedEvent();
mPanGestureDetector?.Dispose();
mPanGestureDetector = null;
- if(!(ContentContainer?.Disposed ?? true) && propertyNotification != null)
+ if(ContentContainer != null && propertyNotification != null)
{
- ContentContainer?.RemovePropertyNotification(propertyNotification);
+ ContentContainer.RemovePropertyNotification(propertyNotification);
}
propertyNotification?.Dispose();
propertyNotification = null;
WheelEvent -= OnWheelEvent;
- if (type == DisposeTypes.Explicit)
- {
-
- }
base.Dispose(type);
}