We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b9ed5e3 + e0415f1 commit 6dd5d44Copy full SHA for 6dd5d44
src/ArduinoGraphics.cpp
@@ -452,7 +452,7 @@ void ArduinoGraphics::endText(int scrollDirection)
452
stroke(_textR, _textG, _textB);
453
454
if (scrollDirection == SCROLL_LEFT) {
455
- int scrollLength = _textBuffer.length() * textFontWidth() + _textX;
+ int scrollLength = _textBuffer.length() * textFontWidth() + _textX + 1;
456
457
for (int i = 0; i < scrollLength; i++) {
458
beginDraw();
@@ -476,7 +476,7 @@ void ArduinoGraphics::endText(int scrollDirection)
476
delay(_textScrollSpeed);
477
}
478
} else if (scrollDirection == SCROLL_UP) {
479
- int scrollLength = textFontHeight() + _textY;
+ int scrollLength = textFontHeight() + _textY + 1;
480
481
482
0 commit comments