diff --git a/components/mobileshell/qml/actiondrawer/ActionDrawerOpenSurface.qml b/components/mobileshell/qml/actiondrawer/ActionDrawerOpenSurface.qml index c6ce24e0..0241d80c 100644 --- a/components/mobileshell/qml/actiondrawer/ActionDrawerOpenSurface.qml +++ b/components/mobileshell/qml/actiondrawer/ActionDrawerOpenSurface.qml @@ -43,7 +43,7 @@ MouseArea { } anchors.fill: parent - onPressed: { + onPressed: mouse => { oldMouseY = mouse.y; // if the user swiped from the top left, otherwise it's from the top right @@ -57,7 +57,7 @@ MouseArea { } onReleased: endSwipe() onCanceled: endSwipe() - onPositionChanged: { + onPositionChanged: mouse => { updateOffset(mouse.y - oldMouseY); oldMouseY = mouse.y; }