mapbox-gestures-android icon indicating copy to clipboard operation
mapbox-gestures-android copied to clipboard

Common repository for pointer data

Open LukasPaczos opened this issue 6 years ago • 0 comments

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 avatar Jul 19 '19 14:07 LukasPaczos