mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +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 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
|
||||
FlickContainer {
|
||||
|
|
|
|||
|
|
@ -119,8 +119,9 @@ Item {
|
|||
}
|
||||
|
||||
// actual drawer
|
||||
Controls.Control {
|
||||
id: drawerFlickable
|
||||
MobileShell.BaseItem {
|
||||
visible: root.openFactor > 0 // prevent handlers from picking up events
|
||||
|
||||
Layout.fillWidth: true
|
||||
Layout.preferredHeight: root.height
|
||||
leftPadding: root.leftPadding; topPadding: root.topPadding
|
||||
|
|
|
|||
|
|
@ -50,7 +50,7 @@ FocusScope {
|
|||
}
|
||||
|
||||
function onResetHomeScreenPosition() {
|
||||
homescreen.homeScreenState.goToPageIndex(0);
|
||||
homescreen.homeScreenState.animateGoToPageIndex(0, PlasmaCore.Units.longDuration);
|
||||
homescreen.homeScreenState.closeAppDrawer();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue