mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 04:56:50 +03:00
Allow box at point to search descendant space of boxes with no style.
svn path=/trunk/netsurf/; revision=7359
This commit is contained in:
parent
a99a5bdd70
commit
68a72d17ab
@ -470,7 +470,8 @@ bool box_contains_point(struct box *box, int x, int y, bool *physically)
|
||||
*physically = true;
|
||||
return true;
|
||||
}
|
||||
if (box->style && box->style->overflow == CSS_OVERFLOW_VISIBLE) {
|
||||
if ((box->style && box->style->overflow == CSS_OVERFLOW_VISIBLE) ||
|
||||
!box->style) {
|
||||
if (box->x + box->descendant_x0 <= x &&
|
||||
x < box->x + box->descendant_x1 &&
|
||||
box->y + box->descendant_y0 <= y &&
|
||||
|
Loading…
Reference in New Issue
Block a user