Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

SpriteGestureController do not process correct coordinate

Aperta
#1,805 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
30/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
android, kotlin

Direzione di ricerca

Start with moveSprite in SpriteGestureController and the RotationActivity screen that hosts it, then compare how the touch coordinates are mapped against the view size. The issue says a SurfaceView's black letterbox bars make those two values disagree when the video ratio differs from the screen ratio. Done means a sprite that has been shrunk and moved to a corner can be selected again by touch. The issue has no comments, no assignee and no linked pull request, so ask the maintainer before starting.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the bug
In RotationActivity, when trying to move gif or text, the touch event is not correct.

To Reproduce

  1. Select GIF or text filter.
  2. To see the wrong result clearly, first rotate phone to horizon, then use 2 fingers to make the target (gif or text) smaller.
  3. Try to move the target away from the center to the edge (e.g. left down corner).
  4. Then try to select the target to move again. You will find it is hard to select it.

Additional context
Function moveSprite calculating target coordinate with size of View and coordinate of MotionEvent in touch event.
Since SurfaceView has black part when the video ratio is not equal with the screen ratio,
the size of View and coordinate of MotionEvent do not provide correct value.

Lingua principale
Kotlin
Stelle
3k
Fork
946
Merge medio
3g 17h
PR unite (30g)
9

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di pedroSG94/RootEncoder

Tutte le issue di pedroSG94/RootEncoder

Issue simili

Altre issue su Kotlin

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.