mirror of
https://github.com/noctalia-dev/noctalia-shell.git
synced 2026-05-11 17:08:27 +08:00
autofmt
This commit is contained in:
@@ -232,7 +232,7 @@ Item {
|
||||
}
|
||||
onPositionChanged: mouse => {
|
||||
if (!(mouse.buttons & Qt.LeftButton))
|
||||
return;
|
||||
return;
|
||||
const globalPoint = toastDragArea.mapToGlobal(mouse.x, mouse.y);
|
||||
const rawDeltaX = globalPoint.x - root.pressGlobalX;
|
||||
const rawDeltaY = globalPoint.y - root.pressGlobalY;
|
||||
@@ -241,11 +241,11 @@ Item {
|
||||
if (!root.isSwiping) {
|
||||
if (root.useVerticalSwipe) {
|
||||
if (Math.abs(deltaY) < root.swipeStartThreshold)
|
||||
return;
|
||||
return;
|
||||
root.isSwiping = true;
|
||||
} else {
|
||||
if (Math.abs(deltaX) < root.swipeStartThreshold)
|
||||
return;
|
||||
return;
|
||||
root.isSwiping = true;
|
||||
}
|
||||
}
|
||||
@@ -259,7 +259,7 @@ Item {
|
||||
}
|
||||
onReleased: mouse => {
|
||||
if (mouse.button !== Qt.LeftButton)
|
||||
return;
|
||||
return;
|
||||
if (root.isSwiping) {
|
||||
root.isSwiping = false;
|
||||
const dismissDistance = root.useVerticalSwipe ? Math.abs(root.swipeOffsetY) : Math.abs(root.swipeOffset);
|
||||
|
||||
Reference in New Issue
Block a user