diff --git a/apps/cutelauncher/ChangeLog b/apps/cutelauncher/ChangeLog index a147fe238..29232f766 100644 --- a/apps/cutelauncher/ChangeLog +++ b/apps/cutelauncher/ChangeLog @@ -1,3 +1,4 @@ 0.27: New app introduced to the app loader! 0.28: Adjusted icon size to better fit with native dimensions (48x48) 0.29: Draw function optimization +0.30: Refine initial scrollbar position diff --git a/apps/cutelauncher/Changelog b/apps/cutelauncher/Changelog index a147fe238..29232f766 100644 --- a/apps/cutelauncher/Changelog +++ b/apps/cutelauncher/Changelog @@ -1,3 +1,4 @@ 0.27: New app introduced to the app loader! 0.28: Adjusted icon size to better fit with native dimensions (48x48) 0.29: Draw function optimization +0.30: Refine initial scrollbar position diff --git a/apps/cutelauncher/app.js b/apps/cutelauncher/app.js index 0f5a3fe11..a7f367aed 100644 --- a/apps/cutelauncher/app.js +++ b/apps/cutelauncher/app.js @@ -142,6 +142,7 @@ } let prev_idx = -1; + let second_call = false; E.showScroller({ h: ITEM_HEIGHT, @@ -180,10 +181,11 @@ } let textY = rect.y + iconPadding + iconSize + 15; g.drawString(text, rectX + rectSize / 2, textY); - if (idx != prev_idx && settings.scrollbar) { + if (idx != prev_idx && !second_call && settings.scrollbar) { updateScrollIndicator(idx); + if (prev_idx == -1) second_call = true; prev_idx = idx; - } + } else if (second_call) second_call = false; }, select: (idx) => { // Launch the selected app diff --git a/apps/cutelauncher/metadata.json b/apps/cutelauncher/metadata.json index 6d77fa530..c70490084 100644 --- a/apps/cutelauncher/metadata.json +++ b/apps/cutelauncher/metadata.json @@ -2,7 +2,7 @@ "id": "cutelauncher", "name": "Cute Launcher", "shortName": "Cute Launcher", - "version": "0.29", + "version": "0.30", "description": "A simple launcher app for Bangle.js 2 that makes use of the full touchscreen", "icon": "app.png", "type": "launch",