Update file ActionDrawerOpenSurface.qml

This commit is contained in:
Yari Polla 2023-03-06 11:49:25 +00:00
parent a08e4c25d9
commit 2cf0d35f0c

View file

@ -43,7 +43,7 @@ MouseArea {
} }
anchors.fill: parent anchors.fill: parent
onPressed: { onPressed: mouse => {
oldMouseY = mouse.y; oldMouseY = mouse.y;
// if the user swiped from the top left, otherwise it's from the top right // if the user swiped from the top left, otherwise it's from the top right
@ -57,7 +57,7 @@ MouseArea {
} }
onReleased: endSwipe() onReleased: endSwipe()
onCanceled: endSwipe() onCanceled: endSwipe()
onPositionChanged: { onPositionChanged: mouse => {
updateOffset(mouse.y - oldMouseY); updateOffset(mouse.y - oldMouseY);
oldMouseY = mouse.y; oldMouseY = mouse.y;
} }