Skip to content

Commit

Permalink
fix(Slider): macOS vertical thumb movement is flipped
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinZikmund committed Apr 14, 2020
1 parent c3508a0 commit 36fd57e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Uno.UI/UI/Xaml/Input/PointerRoutedEventArgs.macOS.cs
Expand Up @@ -7,6 +7,7 @@
using Windows.System;
using Foundation;
using Windows.UI.Input;
using CoreGraphics;

namespace Windows.UI.Xaml.Input
{
Expand Down Expand Up @@ -48,7 +49,7 @@ public PointerPoint GetCurrentPoint(UIElement relativeTo)
var rawPosition = _nativeEvent.LocationInWindow;
var position = relativeTo != null ?
relativeTo.ConvertPointFromView(_nativeEvent.LocationInWindow, null) :
rawPosition;
new CGPoint(rawPosition.X, Window.Current.Bounds.Height - rawPosition.Y); //flip Y - uses lower-left as origin and IsFlipped does not apply here

var properties = new PointerPointProperties()
{
Expand Down

0 comments on commit 36fd57e

Please sign in to comment.