# 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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user