diff --git a/panels/notification/center/NotifyViewDelegate.qml b/panels/notification/center/NotifyViewDelegate.qml index f2ed3a970..a97db3326 100644 --- a/panels/notification/center/NotifyViewDelegate.qml +++ b/panels/notification/center/NotifyViewDelegate.qml @@ -113,9 +113,11 @@ DelegateChooser { TapHandler { acceptedButtons: Qt.RightButton - onTapped: function (eventPoint, button) { - let pos = eventPoint.position - setting(pos) + onPressedChanged: function () { + if (pressed) { + let pos = point.position + setting(pos) + } } } @@ -201,9 +203,11 @@ DelegateChooser { TapHandler { acceptedButtons: Qt.RightButton - onTapped: function (eventPoint, button) { - let pos = eventPoint.position - setting(pos) + onPressedChanged: function () { + if (pressed) { + let pos = point.position + setting(pos) + } } }