mapbox / mapbox/mapbox-plugins-android
Android animation cancels drag events on annotations
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Java
- Sterne
- 242
- Forks
- 116
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
I'm using a CircleManager to handle a bunch of events such as click, long click, drag started, drag and drag finished. I am also using some android animations that do things such as periodically change the circles' radius.
Without the animations the drag events work just fine.
Now, with the animation process on, I can't drag my circles around.
Using some traces I realized that the onAnnotationDragStarted event does get triggered when I try to move a circle. However, the onAnnotationDragFinished also instantly gets triggered right after the onAnnotationDragStarted.
Am I doing something work or is this expected behaviour ? If so, is there any workaround for it ? I'd very much like to be able to both animate and drag around my annotations.
Thank you
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Beginne damit, das Problem mit CircleManager, ziehbaren Kreisen und der Android-Animation zu reproduzieren, die ihren Radius ändert. Verfolge die Callbacks für den Beginn und das Ende des Ziehens, während die Animation aktiv ist; fertig bedeutet, dass Annotations animiert und gezogen werden können, ohne dass das Ziehen sofort beendet wird.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- android, java
- Bereich
- mobile
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 30/100