From 3bb8cf19667fc1b164762b6e5b0af1841119010c Mon Sep 17 00:00:00 2001 From: DreamMaoMao <2523610504@qq.com> Date: Fri, 28 Feb 2025 21:46:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A8=E5=87=BA=E5=8A=A8=E7=94=BB=E6=94=AF?= =?UTF-8?q?=E6=8C=81=E5=90=91=E4=B8=8A=E9=80=80=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- maomao.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/maomao.c b/maomao.c index 34d5c4c8..cb6868e5 100644 --- a/maomao.c +++ b/maomao.c @@ -5680,9 +5680,10 @@ void init_fadeout_client(Client *c) { c->animation.initial = c->animation.current; fadeout_cient->mon = c->mon; // 这里snap节点的坐标设置是使用的相对坐标,所以不能加上原来坐标 - // 这根普通node有区别 - fadeout_cient->current.y = - c->mon->m.height - (c->animation.current.y - c->mon->m.y); + // 这跟普通node有区别 + fadeout_cient->current.y = c->geom.y+c->geom.height/2 > c->mon->m.y+c->mon->m.height/2 + ? c->mon->m.height - (c->animation.current.y - c->mon->m.y) //down out + : c->mon->m.y - c->geom.height; //up out fadeout_cient->current.x = 0; // x无偏差,垂直划出 fadeout_cient->animation.passed_frames = 0; fadeout_cient->animation.total_frames =