Skip to content
This repository has been archived by the owner on Aug 13, 2021. It is now read-only.

GestureRecognizer matrices (matrix and inverse) should be calculated post-transform #3

Open
pingpongboss opened this issue Dec 12, 2016 · 0 comments

Comments

@pingpongboss
Copy link
Contributor

Right now it's calculated pre-transform, and is possibly stale post-transform. For example:

View view;
GestureRecognizer gesture;

view.setGestureRecognizer(gesture);

gesture.setOnStateChangeListener({ gesture in
  // gesture.getCentroid() is correct here.
  view.translateX(gesture.getTranslationX());
  // gesture.getCentroid() is now incorrect here.
});

drag(view, 50);
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant