Skip to content

Commit

Permalink
Fix #195: Pressing and dragging outside of an item in the navigation …
Browse files Browse the repository at this point in the history
…pane still switches to that page
  • Loading branch information
Kinnara committed Nov 12, 2020
1 parent 8198231 commit fce6cac
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ModernWpf/Input/InputHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,11 @@ private static void OnMouseLeftButtonUp(object sender, MouseButtonEventArgs e)
}
else
{
RaiseTapped(element, e.Timestamp);
var elementBounds = new Rect(new Point(), element.RenderSize);
if (elementBounds.Contains(e.GetPosition(element)))
{
RaiseTapped(element, e.Timestamp);
}
}
}
}
Expand Down

0 comments on commit fce6cac

Please sign in to comment.