mirror of
https://github.com/wiiu-env/launchiine.git
synced 2024-11-21 17:29:18 +01:00
Buttons are no longer holdable when the screen is scrolling
This commit is contained in:
parent
8a597a805d
commit
0776a13841
@ -583,10 +583,17 @@ void GuiIconGrid::updateButtonPositions() {
|
||||
uint32_t endPage = startPage;
|
||||
|
||||
if(targetLeftPosition != currentLeftPosition) {
|
||||
for (auto const& x : vec) {
|
||||
x.second->button->setHoldable(false);
|
||||
}
|
||||
endPage++;
|
||||
if(endPage > pages) {
|
||||
endPage = pages;
|
||||
}
|
||||
}else{
|
||||
for (auto const& x : vec) {
|
||||
x.second->button->setHoldable(true);
|
||||
}
|
||||
}
|
||||
|
||||
for(uint32_t i = startPage * (MAX_COLS * MAX_ROWS); i < (endPage + 1) * (MAX_COLS * MAX_ROWS); i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user