messagesoverlay - Fix scrolling to last line for long text

pull/3376/head
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
Track handler changes done by background code
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
msg.CanscrollUp = false;
if (currentLine < msg.lines.length) {
if (drawnHeight >= maxTextHeight) {
msg.CanscrollDown = true;
drawTriangleDown();
} else

View File

@ -1,7 +1,7 @@
{
"id": "messagesoverlay",
"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)",
"icon": "app.png",
"type": "bootloader",