Replies: 1 comment
-
Also, I understand that Pan can have multiple touch points. So alternatively, maybe |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
PanUpdatedEventArgs
should provide you with some way of get the window-relative current position of the pan gesture, just likeTappedEventArgs.GetPosition
does.Public API Changes
Just add a property like
PanUpdatedEventArgs.GetPosition
.Intended Use-Case
This would allow a user to do more with a pan gesture than they currently can. A simple example would be for rotation of a 3D scene. Typically, that requires projecting the current and last pan operation positions onto a virtual hemisphere centered in the viewport, and determining the rotation matrix from those projections.
PanUpdatedEventArgs.TotalX
andPanUpdatedEventArgs.TotalY
are insufficient in that regard (but should remain as they're obviously useful in other scenarios).Beta Was this translation helpful? Give feedback.
All reactions