Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Common repository for pointer data #76

Open
LukasPaczos opened this issue Jul 19, 2019 · 0 comments
Open

Common repository for pointer data #76

LukasPaczos opened this issue Jul 19, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@LukasPaczos
Copy link
Contributor

Since there's only one entry point to pass MotionEvents, there's no difference between the data each gesture detector is working with.

We should centralize this incoming stream of events in one "repository" (AndroidGestureManager class?) that will server pointers map, distances, spans, and velocities for the gesture detectors. This should significantly decrease the memory and computation footprint of those computations which are effectively repeated by each gesture detector, because of the inheritance.

@LukasPaczos LukasPaczos added the enhancement New feature or request label Jul 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant