mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add 'scroll-step' property to container
This commit is contained in:
parent
5c005b4f9a
commit
2412699b89
6 changed files with 21 additions and 3 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue