summaryrefslogtreecommitdiff
path: root/render/box.c
diff options
context:
space:
mode:
Diffstat (limited to 'render/box.c')
-rw-r--r--render/box.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/render/box.c b/render/box.c
index d9fcb6233..cdca6c66f 100644
--- a/render/box.c
+++ b/render/box.c
@@ -3064,8 +3064,7 @@ siblings:
bool box_contains_point(struct box *box, int x, int y)
{
- if (box->style && (box->style->overflow == CSS_OVERFLOW_HIDDEN ||
- box->style->overflow == CSS_OVERFLOW_SCROLL)) {
+ if (box->style && box->style->overflow != CSS_OVERFLOW_VISIBLE) {
if (box->x <= x &&
x < box->x + box->padding[LEFT] + box->width +
box->padding[RIGHT] &&