From 404b505a41362f340e79374ee3ad4dbd468da3e4 Mon Sep 17 00:00:00 2001 From: cirakg Date: Sun, 25 Oct 2026 13:13:39 +0100 Subject: fix(ui): vertical swipes and drags scroll the list and text screens The Forerunner 70 sends no page behaviour for a swipe on a custom view, so the list and info screens only scrolled with the buttons. Swipes and drags now scroll them directly; one gesture scrolls once even when the device also sends the page behaviour, and a drag's release opens no row. Co-Authored-By: Claude Opus 5.5 --- source/ui/ListView.mc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'source/ui/ListView.mc') diff --git a/source/ui/ListView.mc b/source/ui/ListView.mc index 94b8c99..de73cce 100644 --- a/source/ui/ListView.mc +++ b/source/ui/ListView.mc @@ -82,9 +82,15 @@ class ListView extends WatchUi.View { return; } focus = ((focus + delta) % n + n) % n; + Diag.data("list_move", "focus=" + focus); WatchUi.requestUpdate(); } + // The height of a row as last drawn (for drags). + function rowHeight() as Number { + return _rowHeight; + } + function focusedId() as String? { return focus < _ids.size() ? _ids[focus] : null; } -- cgit v1.2.3