[presto] Use placeholder cover when scrolling record detail view

This commit is contained in:
Claudio Ortolina
2026-05-16 17:43:53 +01:00
parent 9f5a26198f
commit a7076172f5
2 changed files with 36 additions and 5 deletions
+5 -5
View File
@@ -1997,6 +1997,11 @@ def _draw_detail_cover(app, rec, y):
if y >= HEIGHT:
return
if app.touch.dragging:
_draw_placeholder(DETAIL_COVER_X, y,
DETAIL_COVER_SIZE, DETAIL_COVER_SIZE)
return
cover_url = _record_detail_cover_url(rec)
if not cover_url:
@@ -2004,12 +2009,7 @@ def _draw_detail_cover(app, rec, y):
DETAIL_COVER_SIZE, DETAIL_COVER_SIZE)
return
# Use cached data or fetch
data = rec.get("_detail_thumb_data", None)
if data is None and app.touch.dragging:
_draw_placeholder(DETAIL_COVER_X, y,
DETAIL_COVER_SIZE, DETAIL_COVER_SIZE)
return
if data is None and not rec.get("_detail_thumb_failed", False):
data = fetch_thumbnail(app, cover_url)