修改了actions动作链只有按下没有释放功能

This commit is contained in:
陆桑 2025-09-12 15:48:57 +08:00
parent b1f74b2e07
commit 3e0ecc1a4b

View File

@ -820,7 +820,7 @@ public class Actions {
* @return this
*/
private Actions _release(ClickAction button) {
this.dr.run("Input.dispatchMouseEvent", Map.of("type", "mousePressed", "button", button.getValue(), "clickCount", 1, "x", this.curr.getX(), "y", this.curr.getY(), "modifiers", this.modifier));
this.dr.run("Input.dispatchMouseEvent", Map.of("type", "mouseReleased", "button", button.getValue(), "clickCount", 1, "x", this.curr.getX(), "y", this.curr.getY(), "modifiers", this.modifier));
return this;
}