Skip to content

Commit

Permalink
fix(macos): ManipulationDelta translateY being inverted
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoy312 committed Dec 9, 2020
1 parent 9cf1c86 commit 03d13f5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Uno.UWP/UI/Input/GestureRecognizer.Manipulation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,10 @@ private ManipulationDelta GetCumulative()
{
var translateX = _isTranslateXEnabled ? _currents.Center.X - _origins.Center.X : 0;
var translateY = _isTranslateYEnabled ? _currents.Center.Y - _origins.Center.Y : 0;
#if __MACOS__
// correction for translateY being inverted (#4700)
translateY *= -1;
#endif

double rotate;
float scale, expansion;
Expand Down

0 comments on commit 03d13f5

Please sign in to comment.