Skip to content

Commit

Permalink
fix: DragSmooth Repeat Call MoveScale
Browse files Browse the repository at this point in the history
`DragSmooth` calls `MoveScale` followed by `MoveSmooth`, and `MoveSmooth` calls `MoveScale` within `MoveSmooth`, resulting in duplicate calls to `MoveScale`.
  • Loading branch information
nzlov authored Apr 7, 2024
1 parent b718cf4 commit 3171c5b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions robotgo.go
Original file line number Diff line number Diff line change
Expand Up @@ -540,8 +540,6 @@ func Drag(x, y int, args ...string) {
//
// robotgo.DragSmooth(10, 10)
func DragSmooth(x, y int, args ...interface{}) {
x, y = MoveScale(x, y)

Toggle("left")
MilliSleep(50)
MoveSmooth(x, y, args...)
Expand Down

0 comments on commit 3171c5b

Please sign in to comment.