mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-03 10:14:45 +00:00
homescreen: Fix favourites strip swipe
This commit is contained in:
parent
3e8fa8f8e8
commit
aff0064b62
3 changed files with 9 additions and 4 deletions
|
|
@ -42,7 +42,11 @@ Item {
|
||||||
property alias appDrawer: appDrawerLoader.item
|
property alias appDrawer: appDrawerLoader.item
|
||||||
property alias homeScreenContents: contents
|
property alias homeScreenContents: contents
|
||||||
|
|
||||||
Component.onCompleted: homeScreenState.goToPageIndex(0)
|
Component.onCompleted: {
|
||||||
|
// ensure that homescreen is on first page
|
||||||
|
homeScreenState.goToPageIndex(0);
|
||||||
|
homeScreenState.resetSwipeState();
|
||||||
|
}
|
||||||
|
|
||||||
// the parent of the homescreen is a flickable that captures all flicks
|
// the parent of the homescreen is a flickable that captures all flicks
|
||||||
FlickContainer {
|
FlickContainer {
|
||||||
|
|
|
||||||
|
|
@ -119,8 +119,9 @@ Item {
|
||||||
}
|
}
|
||||||
|
|
||||||
// actual drawer
|
// actual drawer
|
||||||
Controls.Control {
|
MobileShell.BaseItem {
|
||||||
id: drawerFlickable
|
visible: root.openFactor > 0 // prevent handlers from picking up events
|
||||||
|
|
||||||
Layout.fillWidth: true
|
Layout.fillWidth: true
|
||||||
Layout.preferredHeight: root.height
|
Layout.preferredHeight: root.height
|
||||||
leftPadding: root.leftPadding; topPadding: root.topPadding
|
leftPadding: root.leftPadding; topPadding: root.topPadding
|
||||||
|
|
|
||||||
|
|
@ -50,7 +50,7 @@ FocusScope {
|
||||||
}
|
}
|
||||||
|
|
||||||
function onResetHomeScreenPosition() {
|
function onResetHomeScreenPosition() {
|
||||||
homescreen.homeScreenState.goToPageIndex(0);
|
homescreen.homeScreenState.animateGoToPageIndex(0, PlasmaCore.Units.longDuration);
|
||||||
homescreen.homeScreenState.closeAppDrawer();
|
homescreen.homeScreenState.closeAppDrawer();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue