You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Take a pointersStream (#64) as input and transform it into a stream of deltas. Every pointerdown/pointerup should move the starting point to the center of the current pointers. Every pointermove should dispatch a delta that represents the difference between the active pointers' center and the starting point.
Open questions:
What should the deltas be relative to (the last event or the starting event)?
Last event is much simpler to model - is it accurate?
How do you incorporate a target's current position (to make sure it moves relative to its last-known-position rather than always from {0,0})?
This should be the responsibility of a performer, not of the stream. The stream just represent changes in pointer location over time.
The text was updated successfully, but these errors were encountered:
The iOS and Android implementations dispatch values relative to pointerdown and add them to a view with translationAddedTo(). To maintain conceptually parity across the platforms, I'll likely start there too.
Take a
pointersStream
(#64) as input and transform it into a stream of deltas. Everypointerdown
/pointerup
should move the starting point to the center of the current pointers. Everypointermove
should dispatch a delta that represents the difference between the active pointers' center and the starting point.Open questions:
{0,0}
)?The text was updated successfully, but these errors were encountered: