add 'scroll-step' property to container

This commit is contained in:
MihailRis
2024-11-19 06:46:54 +03:00
parent 5c005b4f9a
commit 2412699b89
6 changed files with 21 additions and 3 deletions
+8
View File
@@ -165,6 +165,14 @@ void Container::setSize(glm::vec2 size) {
}
}
int Container::getScrollStep() const {
return scrollStep;
}
void Container::setScrollStep(int step) {
scrollStep = step;
}
void Container::refresh() {
std::stable_sort(nodes.begin(), nodes.end(), [](const auto& a, const auto& b) {
return a->getZIndex() < b->getZIndex();