Commit d498bca
fix(agent): replace pyautogui.drag() with mouseDown/moveTo/mouseUp
pyautogui.drag() uses relative coordinates that compound with starting
position errors, making it unreliable for small targets like LibreOffice
fill handles (~3x3 pixels). Replace with explicit mouseDown/moveTo/mouseUp
sequence with timing delays for reliable drag operations.
Also adds drag case to _build_pixel_command() for the pixel_action() path.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 9b51aee commit d498bca
1 file changed
Lines changed: 29 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1026 | 1026 | | |
1027 | 1027 | | |
1028 | 1028 | | |
1029 | | - | |
| 1029 | + | |
1030 | 1030 | | |
1031 | 1031 | | |
1032 | 1032 | | |
| |||
1072 | 1072 | | |
1073 | 1073 | | |
1074 | 1074 | | |
| 1075 | + | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
| 1079 | + | |
| 1080 | + | |
| 1081 | + | |
| 1082 | + | |
| 1083 | + | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
| 1092 | + | |
1075 | 1093 | | |
1076 | 1094 | | |
1077 | 1095 | | |
| |||
1469 | 1487 | | |
1470 | 1488 | | |
1471 | 1489 | | |
1472 | | - | |
| 1490 | + | |
| 1491 | + | |
| 1492 | + | |
| 1493 | + | |
| 1494 | + | |
| 1495 | + | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
1473 | 1500 | | |
1474 | 1501 | | |
1475 | 1502 | | |
| |||
0 commit comments