mapbox-gestures-android
mapbox-gestures-android copied to clipboard
Common repository for pointer data
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.