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:
1 parent
d739827db2
commit
f1b5da25b0
1 file changed
+3
-2
@@ -424,10 +424,11 @@ void LyraTheme::drawRecentBookCover(GfxRenderer& renderer, Rect rect, const std:
|
|||||||
coverWidth = LyraMetrics::values.homeCoverHeight * 0.6;
|
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) {
|
if (hasContinueReading) {
|
||||||
TouchRegistry::getInstance().add(
|
TouchRegistry::getInstance().add(
|
||||||
Rect{LyraMetrics::values.contentSidePadding, tileY, coverWidth + 2 * hPaddingInSelection,
|
Rect{LyraMetrics::values.contentSidePadding, tileY, tileWidth,
|
||||||
LyraMetrics::values.homeCoverHeight + 2 * hPaddingInSelection},
|
LyraMetrics::values.homeCoverHeight + 2 * hPaddingInSelection},
|
||||||
0, TouchRegistry::Cover);
|
0, TouchRegistry::Cover);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in new issue
Block a user