google / google/codeworld

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

Open
#1,425 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Haskell
Stars
1.3k
Forks
201
PR merge metrics
No merged PRs in 30d

Description

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!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.