Lagrange [work/v1.10]

Mobile: Tweaking link highlight on hover

=> 0f168910bc41ebc6ccfc2111b44a0f0a1efcb790

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) {
         }
 #endif
         iBool isMobileHover = deviceType_App() != desktop_AppDeviceType &&
-            (isPartOfHover || contains_PtrSet(d->view->invalidRuns, run));
+            (isPartOfHover || contains_PtrSet(d->view->invalidRuns, run)) &&
+            (~run->flags & decoration_GmRunFlag || run->flags & startOfLine_GmRunFlag
+             /* highlight link icon but not image captions */);
         /* While this is consistent, it's a bit excessive to indicate that an inlined image
            is open: the image itself is the indication. */
         const iBool isInlineImageCaption = iFalse;
Proxy Information
Original URL
gemini://git.skyjake.fi/lagrange/work%2Fv1.10/cdiff/0f168910bc41ebc6ccfc2111b44a0f0a1efcb790
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
34.024379 milliseconds
Gemini-to-HTML Time
0.347112 milliseconds

This content has been proxied by September (3851b).