messagesoverlay - Fix scrolling to last line for long text

master
Martin Boonk 2024-04-22 13:33:27 +02:00
parent 2accf44418
commit b44ce7b43b
3 changed files with 3 additions and 2 deletions

View File

@ -11,3 +11,4 @@
Some optimization in the rendering code Some optimization in the rendering code
Track handler changes done by background code Track handler changes done by background code
0.08: Fix linter warnings 0.08: Fix linter warnings
0.09: Fix scrolling to last line for long text

View File

@ -426,7 +426,7 @@ const drawMessage = function(msg) {
} else } else
msg.CanscrollUp = false; msg.CanscrollUp = false;
if (currentLine < msg.lines.length) { if (drawnHeight >= maxTextHeight) {
msg.CanscrollDown = true; msg.CanscrollDown = true;
drawTriangleDown(); drawTriangleDown();
} else } else

View File

@ -1,7 +1,7 @@
{ {
"id": "messagesoverlay", "id": "messagesoverlay",
"name": "Messages Overlay", "name": "Messages Overlay",
"version": "0.08", "version": "0.09",
"description": "An overlay based implementation of a messages UI (display notifications from iOS and Gadgetbridge/Android)", "description": "An overlay based implementation of a messages UI (display notifications from iOS and Gadgetbridge/Android)",
"icon": "app.png", "icon": "app.png",
"type": "bootloader", "type": "bootloader",