google / google/codeworld

Clicking on canvas during Inspect with selected node highlights the wrong thing

Aperta
#1,425 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

bug
Lingua principale
Haskell
Stelle
1.3k
Fork
201
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

To reproduce:

1, Run a program with lots of large translated shapes over most of the screen.
2. Click Inspect.
3. Highlight a leaf node of some kind underneath a `translated` function, so that the canvas focuses on just that node and draws it at its untranslated location.
4. Click on the canvas.

* Expected behavior: The shape that you clicked on, if any, in the focused picture becomes the new focus.
* Actual behavior: The shape at that coordinate in the **original** picture becomes the new focus.

Basically, it looks like we're doing hit testing on the wrong picture!

Guida per i contributori

Apri la guida per i contributori

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.

Direzione di ricerca

Riproduci il workflow Inspect con shape tradotte e un nodo foglia selezionato, quindi traccia il percorso di hit-testing dei clic sul canvas. Confronta quale picture viene usata per la ricerca delle coordinate nelle viste focalizzata e originale. È completo quando facendo clic su una shape viene selezionata la shape a quella coordinata nella picture focalizzata e il caso di riproduzione si comporta come previsto.

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

Valutazione

Stack tecnologico
haskell
Ambito
frontend
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Abbastanza chiara
Idoneità per principianti
35/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.