summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-12-26 06:44:09 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-12-26 06:44:09 +0200
commit0f168910bc41ebc6ccfc2111b44a0f0a1efcb790 (patch)
tree6dff3b18d9bc10afc6908309339b1b779fbe0514 /src
parent1ef6a1abe1b0a5f6fc04f44a73ede0c47ca6885b (diff)
Mobile: Tweaking link highlight on hover
Diffstat (limited to 'src')
-rw-r--r--src/ui/documentwidget.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui/documentwidget.c b/src/ui/documentwidget.c
index 1b5b9af2..0977da4a 100644
--- a/src/ui/documentwidget.c
+++ b/src/ui/documentwidget.c
@@ -1261,7 +1261,9 @@ static void drawRun_DrawContext_(void *context, const iGmRun *run) {
1261 } 1261 }
1262#endif 1262#endif
1263 iBool isMobileHover = deviceType_App() != desktop_AppDeviceType && 1263 iBool isMobileHover = deviceType_App() != desktop_AppDeviceType &&
1264 (isPartOfHover || contains_PtrSet(d->view->invalidRuns, run)); 1264 (isPartOfHover || contains_PtrSet(d->view->invalidRuns, run)) &&
1265 (~run->flags & decoration_GmRunFlag || run->flags & startOfLine_GmRunFlag
1266 /* highlight link icon but not image captions */);
1265 /* While this is consistent, it's a bit excessive to indicate that an inlined image 1267 /* While this is consistent, it's a bit excessive to indicate that an inlined image
1266 is open: the image itself is the indication. */ 1268 is open: the image itself is the indication. */
1267 const iBool isInlineImageCaption = iFalse; 1269 const iBool isInlineImageCaption = iFalse;