Fix: Wrapped Multiline Input/Output scrolls horizontally at the edges - cont'd (#1414)

This commit is contained in:
ManoloFLTK
2026-04-20 15:33:07 +02:00
parent de5eed9847
commit d62138eb41
+1 -1
View File
@@ -362,7 +362,7 @@ void Fl_Input_::drawtext(int X, int Y, int W, int H, bool draw_active) {
} else if (curx < newscroll+threshold) {
newscroll = curx-threshold;
}
if (newscroll < 0 || ((type() & FL_MULTILINE_INPUT) && (type() & FL_INPUT_WRAP))) newscroll = 0;
if (newscroll < 0) newscroll = 0;
if (newscroll != xscroll_) {
xscroll_ = newscroll;
mu_p = 0; erase_cursor_only = 0;