isHarryh / Ark-Pets

Arknights Desktop Pets | 明日方舟桌宠
https://arkpets.harryh.cn
GNU General Public License v3.0
493 stars 31 forks source link

[Bug] 动作保持时拖动浮起 #48

Closed dnyyfb closed 10 months ago

dnyyfb commented 11 months ago

软件版本:v2.2.1 运行环境:Windows 11

问题描述

任意桌宠进入动作保持模式后,在任务栏上以坐立姿势平移或竖向短距离拖动(竖向脱离任务栏后会站立,恢复正常)时会突然浮起然后恢复,看起来很怪

截图:
屏幕截图

录屏:
https://github.com/isHarryh/Ark-Pets/assets/63101620/8b86e366-9369-4f94-9462-9a2728a62028

复现方法

在当前主机上稳定出现(记得以前是没有这种现象的),其他的设备还没有测试

isHarryh commented 10 months ago

非常感谢你的反馈。该问题原因已被定位于:

https://github.com/isHarryh/Ark-Pets/blob/17d3fded56a6b92b4dabe62945897b8b7df1514b/core/src/cn/harryh/arkpets/ArkPets.java#L426-L430

其中 L427 WD_postar.set($pos_x, $pos_y); 中的 Y 参数也需要加上 OFFSET_Y 以进行同步。

此问题将在后续版本修复。

isHarryh commented 10 months ago

已于 v2.3.0 修复此问题。