Commit 108daf50 authored by Devin Lin's avatar Devin Lin 🎨
Browse files

homescreens/halcyon: Fix overshoot

parent 213faea6
Pipeline #194618 passed with stage
in 1 minute and 5 seconds
......@@ -35,7 +35,7 @@ GridView {
header: Controls.Control {
implicitWidth: gridView.width
topPadding: PlasmaCore.Units.largeSpacing + Math.round(gridView.height * 0.2)
topPadding: PlasmaCore.Units.largeSpacing + Math.round(gridView.height * 0.25)
bottomPadding: PlasmaCore.Units.largeSpacing
leftPadding: PlasmaCore.Units.smallSpacing
......
......@@ -73,12 +73,14 @@ Item {
onVerticalOvershootChanged: {
if (dragging && verticalOvershoot < 0) {
if (!openingSearchWidget) {
openingSearchWidget = true;
root.searchWidget.startGesture();
if (oldVerticalOvershoot === 0) {
openingSearchWidget = true;
root.searchWidget.startGesture();
}
} else {
let offset = -(verticalOvershoot - oldVerticalOvershoot);
root.searchWidget.updateGestureOffset(-offset);
}
let offset = -(verticalOvershoot - oldVerticalOvershoot);
root.searchWidget.updateGestureOffset(-offset);
}
oldVerticalOvershoot = verticalOvershoot;
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment