Skip to content

Commit

Permalink
fixed dragging for coverflow
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreiMisiukevich committed May 12, 2019
1 parent 4b17c0c commit b82fc5b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions PanCardView/Processors/BaseCoverFlowBackViewProcessor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,8 @@ public virtual void HandlePanChanged(IEnumerable<View> views, CardsView cardsVie
var view = views.FirstOrDefault();
if (animationDirection == AnimationDirection.Null || view == null)
{
HandleInitView(views, cardsView, (AnimationDirection)Sign(view?.TranslationX ?? 0));
HandleInitView(inactiveViews, cardsView, (AnimationDirection)Sign(inactiveViews?.FirstOrDefault()?.TranslationX ?? 0));
return;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public CoverFlowSampleXamlView()
Icon = "next",
CommandParameter = true
};
nextItem.SetBinding(MenuItem.CommandProperty, nameof(CardsSampleViewModel.RemoveCurrentItemCommand));
nextItem.SetBinding(MenuItem.CommandProperty, nameof(CardsSampleViewModel.PanPositionChangedCommand));

ToolbarItems.Add(prevItem);
ToolbarItems.Add(nextItem);
Expand Down

0 comments on commit b82fc5b

Please sign in to comment.