1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-09-30 19:22:14 +00:00

Formspec: fix clamped scroll offset of scroll_containers larger than 1000px

This commit is contained in:
SmallJoker 2025-03-30 18:15:38 +02:00 committed by GitHub
parent 882f132062
commit 309c0a0cb6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 11 additions and 10 deletions

View file

@ -29,6 +29,7 @@ public:
}
void setScrollBar(GUIScrollBar *scrollbar);
void updateScrolling();
private:
enum OrientationEnum
@ -43,5 +44,4 @@ private:
f32 m_scrollfactor; //< scrollbar pos * scrollfactor = scroll offset in pixels
std::optional<s32> m_content_padding_px; //< in pixels
void updateScrolling();
};