Beispiel #1
0
 private void NotifyParentTouchesManagersManipulationStarting(GestureRecognizer.Manipulation manip)
 {
     if (!_isManipulating && (_parentsTouchesManager?.Any() ?? false))
     {
         foreach (var manager in _parentsTouchesManager)
         {
             _isManipulating |= manager.ManipulationStarting(manip);
         }
     }
 }
Beispiel #2
0
 /// <summary>
 /// Indicates that a child listener is starting to track a manipulation
 /// (so the owner should try to not cancel the touches propagation for interactions that are supported by the given manipulation object)
 /// </summary>
 /// <remarks>If this method returns true, the caller MUST also call <see cref="ManipulationEnded"/> once completed (or cancelled).</remarks>
 public bool ManipulationStarting(GestureRecognizer.Manipulation manipulation)
 {
     if (CanConflict(manipulation))
     {
         ManipulationStarted();
         return(true);
     }
     else
     {
         return(false);
     }
 }
Beispiel #3
0
 /// <inheritdoc />
 protected override bool CanConflict(GestureRecognizer.Manipulation manipulation)
 => _scrollPresenter.CanHorizontallyScroll && manipulation.IsTranslateXEnabled ||
 _scrollPresenter.CanVerticallyScroll && manipulation.IsTranslateYEnabled ||
 manipulation.IsDragManipulation;                                // This will actually always be false when CanConflict is being invoked in current setup.
Beispiel #4
0
 /// <inheritdoc />
 protected override bool CanConflict(GestureRecognizer.Manipulation manipulation)
 => manipulation.IsTranslateXEnabled ||
 manipulation.IsTranslateYEnabled ||
 manipulation.IsDragManipulation;                                // This will actually always be false when CanConflict is being invoked in current setup.
Beispiel #5
0
 protected abstract bool CanConflict(GestureRecognizer.Manipulation manipulation);