diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/documentwidget.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c index c9878f65..a65a5f11 100644 --- a/src/ui/documentwidget.c +++ b/src/ui/documentwidget.c | |||
@@ -492,7 +492,8 @@ static void updateHover_DocumentWidget_(iDocumentWidget *d, iInt2 mouse) { | |||
492 | (d->state == ready_RequestState || d->state == receivedPartialResponse_RequestState)) { | 492 | (d->state == ready_RequestState || d->state == receivedPartialResponse_RequestState)) { |
493 | iConstForEach(PtrArray, i, &d->visibleLinks) { | 493 | iConstForEach(PtrArray, i, &d->visibleLinks) { |
494 | const iGmRun *run = i.ptr; | 494 | const iGmRun *run = i.ptr; |
495 | if (contains_Rect(run->bounds, hoverPos)) { | 495 | /* Click targets are slightly expanded so there are no gaps between links. */ |
496 | if (contains_Rect(expanded_Rect(run->bounds, init1_I2(gap_Text / 2)), hoverPos)) { | ||
496 | d->hoverLink = run; | 497 | d->hoverLink = run; |
497 | break; | 498 | break; |
498 | } | 499 | } |