Skip to content

Commit 3171c5b

Browse files
authored
fix: DragSmooth Repeat Call MoveScale
`DragSmooth` calls `MoveScale` followed by `MoveSmooth`, and `MoveSmooth` calls `MoveScale` within `MoveSmooth`, resulting in duplicate calls to `MoveScale`.
1 parent b718cf4 commit 3171c5b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

robotgo.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -540,8 +540,6 @@ func Drag(x, y int, args ...string) {
540540
//
541541
// robotgo.DragSmooth(10, 10)
542542
func DragSmooth(x, y int, args ...interface{}) {
543-
x, y = MoveScale(x, y)
544-
545543
Toggle("left")
546544
MilliSleep(50)
547545
MoveSmooth(x, y, args...)

0 commit comments

Comments
 (0)