Pull back on scrolling change

This commit is contained in:
HarukiToreda 2025-04-10 04:29:42 -04:00
parent 56fbfe13ae
commit f1f6b63380

View File

@ -1325,14 +1325,6 @@ void drawTextMessageFrame(OLEDDisplay *display, OLEDDisplayUiState *state, int16
static uint32_t lastTime = 0, scrollStartDelay = 0, pauseStart = 0;
static bool waitingToReset = false, scrollStarted = false;
// === Reset scroll state when entering screen ===
if (state->ticksSinceLastStateSwitch == 0) {
scrollY = 0;
scrollStartDelay = now;
lastTime = now;
waitingToReset = false;
scrollStarted = false;
}
// === Smooth scrolling adjustment ===
// You can tweak this divisor to change how smooth it scrolls.
// Lower = smoother, but can feel slow.