Add double and long clicks in lists

This commit is contained in:
jpirnay
2026-05-13 14:00:07 +02:00
parent d337110649
commit c8c697da06
24 changed files with 169 additions and 333 deletions
@@ -45,15 +45,8 @@ void FontSelectionActivity::loop() {
return;
}
buttonNavigator.onNextRelease([this] {
selectedIndex = ButtonNavigator::nextIndex(selectedIndex, fontCount);
requestUpdate();
});
buttonNavigator.onPreviousRelease([this] {
selectedIndex = ButtonNavigator::previousIndex(selectedIndex, fontCount);
requestUpdate();
});
buttonNavigator.onNextList(selectedIndex, fontCount, [this] { requestUpdate(); });
buttonNavigator.onPreviousList(selectedIndex, fontCount, [this] { requestUpdate(); });
}
void FontSelectionActivity::handleSelection() {