From 7f041cf95e422e64837ba84378ad9ba9187a8e45 Mon Sep 17 00:00:00 2001 From: Hannah von Reth Date: Mon, 28 Sep 2015 12:23:54 +0200 Subject: [PATCH] Siplyfy code. --- src/plugins/backends/snore/notification.qml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/plugins/backends/snore/notification.qml b/src/plugins/backends/snore/notification.qml index 438dedd..7d612cf 100644 --- a/src/plugins/backends/snore/notification.qml +++ b/src/plugins/backends/snore/notification.qml @@ -30,11 +30,10 @@ Rectangle { // item is hid during a drag event. if(Drag.active){ window.x += x - if(window.visible && Math.abs((window.isOrientatedLeft? + if(Math.abs((window.isOrientatedLeft? window.x - window.animationTo: window.x - window.animationFrom) + mouseAreaAccept.mouseX) <= width * 0.05){ Drag.cancel() - window.visible = false window.dismissed() } } else {