Expand continue-reading card clickable area

Make the entire continue-reading card (cover, title, and gray area) clickable instead of just the cover photo. The clickable area now spans the full tile width rather than just the cover width plus padding.
This commit is contained in:
Justin Mitchell
2026-06-15 16:16:25 -04:00
parent d739827db2
commit f1b5da25b0
+3 -2
View File
@@ -424,10 +424,11 @@ void LyraTheme::drawRecentBookCover(GfxRenderer& renderer, Rect rect, const std:
coverWidth = LyraMetrics::values.homeCoverHeight * 0.6;
}
// Tapping the continue-reading cover opens recentBooks[0] (home selector 0).
// Tapping anywhere on the continue-reading card (cover + title/gray area) opens
// recentBooks[0] (home selector 0) — full card width, not just the cover photo.
if (hasContinueReading) {
TouchRegistry::getInstance().add(
Rect{LyraMetrics::values.contentSidePadding, tileY, coverWidth + 2 * hPaddingInSelection,
Rect{LyraMetrics::values.contentSidePadding, tileY, tileWidth,
LyraMetrics::values.homeCoverHeight + 2 * hPaddingInSelection},
0, TouchRegistry::Cover);
}