on xenial help sign in
forbid closing apps during the edge gesture
d2be534handsome_feng
qml/Stages/PhoneStage.qml+1−1
@@ -319,7 +319,7 @@ Rectangle {
319 otherSelected: spreadView.selectedIndex >= 0 && !selected
319 otherSelected: spreadView.selectedIndex >= 0 && !selected
320 interactive: !spreadView.interactive && spreadView.phase === 0
320 interactive: !spreadView.interactive && spreadView.phase === 0
321 && spreadView.shiftedContentX === 0 && root.interactive && isFocused
321 && spreadView.shiftedContentX === 0 && root.interactive && isFocused
322− swipeToCloseEnabled: spreadView.interactive && root.interactive && !snapAnimation.running
322+ swipeToCloseEnabled: !spreadDragArea.dragging && spreadView.interactive && root.interactive && !snapAnimation.running
323 maximizedAppTopMargin: root.maximizedAppTopMargin
323 maximizedAppTopMargin: root.maximizedAppTopMargin
324 dropShadow: spreadView.active ||
324 dropShadow: spreadView.active ||
325 (priv.focusedAppDelegate && priv.focusedAppDelegate.x !== 0)
325 (priv.focusedAppDelegate && priv.focusedAppDelegate.x !== 0)
qml/Stages/TabletStage.qml+1−1
@@ -503,7 +503,7 @@ Rectangle {
503 otherSelected: spreadView.selectedIndex >= 0 && !selected
503 otherSelected: spreadView.selectedIndex >= 0 && !selected
504 isInSideStage: priv.sideStageAppId == model.appId
504 isInSideStage: priv.sideStageAppId == model.appId
505 interactive: !spreadView.interactive && spreadView.phase === 0 && root.interactive
505 interactive: !spreadView.interactive && spreadView.phase === 0 && root.interactive
506− swipeToCloseEnabled: spreadView.interactive && !snapAnimation.running
506+ swipeToCloseEnabled: !spreadDragArea.dragging && spreadView.interactive && !snapAnimation.running
507 maximizedAppTopMargin: root.maximizedAppTopMargin
507 maximizedAppTopMargin: root.maximizedAppTopMargin
508 dragOffset: !isDash && model.appId == priv.mainStageAppId && root.inverseProgress > 0 && spreadView.phase === 0 ? root.inverseProgress : 0
508 dragOffset: !isDash && model.appId == priv.mainStageAppId && root.inverseProgress > 0 && spreadView.phase === 0 ? root.inverseProgress : 0
509 application: ApplicationManager.get(index)
509 application: ApplicationManager.get(index)