# 0.3.1-1

- Add Deltatime usage for Overscroll as well as a config value for ids multiplier
- Add Function to Layout to remove all ID Objects
- Add step and precision to DragData as well as setting min and max to their type limits
- Use the Address for now for the id of the DragData (cause with tree nodes opened backwars all DragData will share the same data reference)
- Add a fix to MaxPosition in Layout to be actually the max Position on X axis
This commit is contained in:
2025-03-16 20:03:08 +01:00
parent 35272687f6
commit 6738fda55c
10 changed files with 53 additions and 22 deletions

View File

@@ -249,7 +249,7 @@ void UI7::Menu::PostHandler() {
if (Layout->ScrollOffset[1] > Layout->MaxPosition[1] - Layout->Size.y() &&
Layout->MaxPosition[1] != 0.f &&
Layout->MaxPosition[1] >= Layout->Size.y() - io->MenuPadding[1]) {
Layout->ScrollOffset[1] -= 3.f;
Layout->ScrollOffset[1] -= io->OverScrollMod * io->Delta;
if (Layout->ScrollOffset[1] <
Layout->MaxPosition[1] - Layout->Size.y()) {
Layout->ScrollOffset[1] = Layout->MaxPosition[1] - Layout->Size.y();
@@ -258,7 +258,7 @@ void UI7::Menu::PostHandler() {
/// Do the Same as above just for Overscroll back to the top
if (Layout->ScrollOffset[1] < 0) {
Layout->ScrollOffset[1] += 3.f;
Layout->ScrollOffset[1] += io->OverScrollMod * io->Delta;
if (Layout->ScrollOffset[1] > 0) {
Layout->ScrollOffset[1] = 0;
}