You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
hit test issue: 2 absolute divs create an opaque region for mouse events #8759
The two positioned divs are layerized into the same layer, so IOCompositor::find_topmost_layer_at_point correctly returns this layer. However, we don't actually want the topmost layer; we want the topmost element. If the point is in a region of the layer that contains no element, the hit test should fail. I'm not sure yet how to implement this without a round trip to the script task… /cc @pcwalton and @mrobinson
Note that this is only a problem when the layer is on top of an iframe, because that causes the compositor to send the mouse event message to the wrong document. Perhaps if this happens, the script task could detect it and forward the message to the child document.
Activity
paulrouget commentedon Dec 1, 2015
/cc @mbrubeck
mbrubeck commentedon Dec 1, 2015
The two positioned divs are layerized into the same layer, so
IOCompositor::find_topmost_layer_at_pointcorrectly returns this layer. However, we don't actually want the topmost layer; we want the topmost element. If the point is in a region of the layer that contains no element, the hit test should fail. I'm not sure yet how to implement this without a round trip to the script task… /cc @pcwalton and @mrobinsonmbrubeck commentedon Dec 1, 2015
Note that this is only a problem when the layer is on top of an iframe, because that causes the compositor to send the mouse event message to the wrong document. Perhaps if this happens, the script task could detect it and forward the message to the child document.
If a mouse event is targeting an iframe, forward it to the iframe's i…
If a mouse event is targeting an iframe, forward it to the iframe's i…
If a mouse event is targeting an iframe, forward it to the iframe's i…
If a mouse event is targeting an iframe, forward it to the iframe's i…
If a mouse event is targeting an iframe, forward it to the iframe's i…
Auto merge of #8785 - mbrubeck:fixed-hit-test, r=pcwalton
If a mouse event is targeting an iframe, forward it to the iframe's i…
If a mouse event is targeting an iframe, forward it to the iframe's i…
Auto merge of #8785 - mbrubeck:fixed-hit-test, r=pcwalton