Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/Microsoft/dev' into Classi…
Browse files Browse the repository at this point in the history
…cMenu
  • Loading branch information
IbraheemOsama committed Jun 27, 2017
2 parents 5e19294 + 35f4775 commit 9fee708
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Microsoft.Toolkit.Uwp.UI.Controls/RadialGauge/RadialGauge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ protected double ValueAngle
/// </summary>
protected override void OnApplyTemplate()
{
PointerReleased += RadialGauge_PointerReleased;
OnScaleChanged(this);

base.OnApplyTemplate();
Expand Down Expand Up @@ -688,6 +689,14 @@ private void RadialGauge_Tapped(object sender, TappedRoutedEventArgs e)
SetGaugeValueFromPoint(e.GetPosition(this));
}

private void RadialGauge_PointerReleased(object sender, PointerRoutedEventArgs e)
{
if (IsInteractive)
{
e.Handled = true;
}
}

private void UpdateNormalizedAngles()
{
var result = Mod(MinAngle, 360);
Expand Down

0 comments on commit 9fee708

Please sign in to comment.