1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-24 21:42:51 -05:00

launcher v2: spacing adjustments

This commit is contained in:
bbedward
2026-01-20 18:10:55 -05:00
parent 2b2977de4a
commit 80ce6aa19c
2 changed files with 5 additions and 5 deletions

View File

@@ -68,11 +68,11 @@ Item {
var targetY = sectionY + 32 + itemY;
var targetBottom = targetY + itemHeight;
var stickyHeight = stickyHeader.visible ? 32 : 0;
var stickyHeight = mainFlickable.contentY > 0 ? 32 : 0;
var shadowPadding = 24;
if (targetY < mainFlickable.contentY + stickyHeight) {
mainFlickable.contentY = Math.max(0, targetY - stickyHeight);
mainFlickable.contentY = Math.max(0, targetY - 32);
} else if (targetBottom > mainFlickable.contentY + mainFlickable.height - shadowPadding) {
mainFlickable.contentY = Math.min(mainFlickable.contentHeight - mainFlickable.height, targetBottom - mainFlickable.height + shadowPadding);
}
@@ -385,7 +385,7 @@ Item {
return null;
var scrollY = mainFlickable.contentY;
if (scrollY <= 32)
if (scrollY <= 0)
return null;
var y = 0;