New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 788249 link

Starred by 1 user

Issue metadata

Status: Assigned
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug

Blocking:
issue 732400



Sign in to add a comment

viz hit test doesn't work when we have a window in between its sibling and that sibling's child

Project Member Reported by riajiang@chromium.org, Nov 24 2017

Issue description

e.g.
+a----------------------+
|   +b---------+        |
|   |          |        |
|   |          |        |
|   |          |        |
|   |       +c-|------+ |    
|   |       |1 |      | |
|   +----------+      | |
|           |     2   | |
|           |         | |
|           +---------+ |
+-----------------------+
a is the parent of b. c is a sibling of a; it's under b and above a.
The hit-test data we have looks like:
root
  a
   b
  c
We can handle point 1 correctly because of z-order in hit-test data and we stop looking further after we found the target. However, for point 2, it's going to match window a instead of c - we go to a, then b (b doesn't contain it so we go back to a which contains it) and stops at a.

 

Comment 1 by sadrul@chromium.org, Nov 24 2017

Cc: sky@chromium.org
I don't think this is possible in aura. Can you come up with an example for this? (window c above window a in aura typically implies that c is above the entire subtree under a).

Comment 2 by sadrul@chromium.org, Nov 24 2017

Transient/modal windows are somewhat of an exception ... it'd be interesting to see a scenario where this happens.
I'm not sure if it's possible in aura, but it's possible in blink (example [1] from flackr@)

[1] http://jsbin.com/logoyit/edit?html,css,js,output

Comment 4 by sky@chromium.org, Nov 27 2017

Sadrul is right that we don't allow this in aura (or views).
Labels: -Proj-Mustash -Proj-Mustash-Mus-GPU Proj-Mash
I'm assuming this is only an issue if mash is using viz hit testing. Do I have that right?
yes. But mash must use viz hit testing if it's going to use OOP-D.

Sign in to add a comment