mirror of
https://github.com/status-im/snorenotify.git
synced 2025-01-22 14:29:10 +00:00
Siplyfy code.
This commit is contained in:
parent
57f117da29
commit
7f041cf95e
@ -30,11 +30,10 @@ Rectangle {
|
|||||||
// item is hid during a drag event.
|
// item is hid during a drag event.
|
||||||
if(Drag.active){
|
if(Drag.active){
|
||||||
window.x += x
|
window.x += x
|
||||||
if(window.visible && Math.abs((window.isOrientatedLeft?
|
if(Math.abs((window.isOrientatedLeft?
|
||||||
window.x - window.animationTo:
|
window.x - window.animationTo:
|
||||||
window.x - window.animationFrom) + mouseAreaAccept.mouseX) <= width * 0.05){
|
window.x - window.animationFrom) + mouseAreaAccept.mouseX) <= width * 0.05){
|
||||||
Drag.cancel()
|
Drag.cancel()
|
||||||
window.visible = false
|
|
||||||
window.dismissed()
|
window.dismissed()
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user