multiline textbox mode

This commit is contained in:
MihailRis
2024-02-26 15:12:02 +03:00
parent 925ef426de
commit 256808630b
11 changed files with 260 additions and 51 deletions
+4 -1
View File
@@ -60,8 +60,11 @@ void Container::act(float delta) {
void Container::scrolled(int value) {
int diff = (actualLength-getSize().y);
if (scroll < 0 && diff <= 0) {
scroll = 0;
}
if (diff > 0 && scrollable) {
scroll += value * 40;
scroll += value * scrollStep;
if (scroll > 0)
scroll = 0;
if (-scroll > diff) {