mirror of
https://github.com/wiiu-env/launchiine.git
synced 2024-11-22 01:39: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;
|
uint32_t endPage = startPage;
|
||||||
|
|
||||||
if(targetLeftPosition != currentLeftPosition) {
|
if(targetLeftPosition != currentLeftPosition) {
|
||||||
|
for (auto const& x : vec) {
|
||||||
|
x.second->button->setHoldable(false);
|
||||||
|
}
|
||||||
endPage++;
|
endPage++;
|
||||||
if(endPage > pages) {
|
if(endPage > pages) {
|
||||||
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++) {
|
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