mapbox / mapbox/mapbox-gestures-android

Common repository for pointer data

Open
#76 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Java
Stars
30
Forks
23
PR merge metrics
No merged PRs in 30d

Description

Since there's only one entry point to pass `MotionEvent`s, 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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the single entry point that passes MotionEvents into the gesture detectors and inspect how each detector computes pointer maps, distances, spans, and velocities. Evaluate the proposed AndroidGestureManager as a shared repository; done means the detectors consume centralized event data without repeating those computations.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
mobile
Issue type
Refactor
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.