Skip to content

Commit

Permalink
fix(reg): Fix scroll offset was applied twice for hit testing on skia
Browse files Browse the repository at this point in the history
  • Loading branch information
dr1rrb authored and Dr.Rx committed Oct 21, 2020
1 parent 08eacc5 commit 59a6375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Uno.UI/UI/Xaml/Media/VisualTreeHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ private static (UIElement? element, Branch? stale) SearchDownForTopMostElementAt
// No needs to adjust the position on Skia:
// the scrolling is achieved using a RenderTransform on the content of the ScrollContentPresenter,
// so it will already be taken in consideration by the case above.
#if __SKIA__
#if !__SKIA__
posRelToElement.X += sv.HorizontalOffset;
posRelToElement.Y += sv.VerticalOffset;
#endif
Expand Down

0 comments on commit 59a6375

Please sign in to comment.