[P157] Don't restart scrolling when the content isn't changed (7dtext)

This commit is contained in:
Ton Huisman
2026-06-13 22:56:46 +02:00
parent a8219ea406
commit c3718b75e6
@@ -1049,6 +1049,10 @@ bool P157_data_struct::plugin_write_7dtext(const String& text) {
}
# endif // ifndef BUILD_NO_DEBUG
# if P157_SCROLL_TEXT
if (_textToScroll.equals(text)) {
return true; // Success, but no change
}
setTextToScroll(EMPTY_STRING);
setScrollEnabled(scrollAll || getEffectiveTextLength(text) > bufLen);