Skip to content

Commit

Permalink
Merge pull request #2790 from windows-toolkit/mhawker/mouse-cursor-fix
Browse files Browse the repository at this point in the history
Fix Mouse Cursor Extensions not changing cursor back
  • Loading branch information
azchohfi authored Feb 8, 2019
2 parents 3fecfe2 + 990c82e commit 3e99146
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Microsoft.Toolkit.Uwp.UI/Extensions/Mouse/Mouse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ private static void Element_PointerExited(object sender, PointerRoutedEventArgs
{
// when exiting change the cursor to the target Mouse.Cursor value of the new element
CoreCursor cursor;
if (e.OriginalSource is FrameworkElement newElement)
if (sender != e.OriginalSource && e.OriginalSource is FrameworkElement newElement)
{
cursor = _cursors[GetCursor(newElement)];
}
Expand Down

0 comments on commit 3e99146

Please sign in to comment.