Skip to content
This repository has been archived by the owner. It is now read-only.
Permalink
Browse files
factored out common code
  • Loading branch information
purplecabbage committed Sep 29, 2014
1 parent 07b0b41 commit 7fdff991f4ce148c09d6687dfc6ea269b1cb732f
Showing 1 changed file with 1 addition and 10 deletions.
@@ -145,23 +145,14 @@ private void Border_ManipulationCompleted(object sender, ManipulationCompletedEv
{
//Debug.WriteLine("Border_ManipulationCompleted");
// suppress zoom
if (!userScalable && e.FinalVelocities != null)
if (ScrollDisabled || ( !userScalable && e.FinalVelocities != null) )
{
if (e.FinalVelocities.ExpansionVelocity.X != 0.0 ||
e.FinalVelocities.ExpansionVelocity.Y != 0.0)
{
e.Handled = true;
}
}

if (ScrollDisabled)
{
if (e.FinalVelocities.LinearVelocity.X != 0.0 ||

This comment has been minimized.

Copy link
@sgrebnov

sgrebnov Sep 30, 2014

Member

Not sure how it is important but in ScrollDisabled statement it was e.FinalVelocities.LinearVelocity and become e.FinalVelocities.ExpansionVelocity

e.FinalVelocities.LinearVelocity.Y != 0.0)
{
e.Handled = true;
}
}
}


1 comment on commit 7fdff99

@purplecabbage
Copy link
Contributor Author

@purplecabbage purplecabbage commented on 7fdff99 Sep 30, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oops, thanks. I'll test more.

Please sign in to comment.