mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-05 11:01:49 +00:00
missing-content panel scroll fix
This commit is contained in:
parent
01df957859
commit
e9efdb0e7b
6 changed files with 18 additions and 16 deletions
|
|
@ -62,7 +62,7 @@ void Container::act(float delta) {
|
|||
|
||||
void Container::scrolled(int value) {
|
||||
int diff = (actualLength-getSize().y);
|
||||
if (diff > 0 && scrollable_) {
|
||||
if (diff > 0 && scrollable) {
|
||||
scroll += value * 40;
|
||||
if (scroll > 0)
|
||||
scroll = 0;
|
||||
|
|
@ -74,8 +74,8 @@ void Container::scrolled(int value) {
|
|||
}
|
||||
}
|
||||
|
||||
void Container::scrollable(bool flag) {
|
||||
scrollable_ = flag;
|
||||
void Container::setScrollable(bool flag) {
|
||||
scrollable = flag;
|
||||
}
|
||||
|
||||
void Container::draw(const GfxContext* pctx, Assets* assets) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue