fix: DragSmooth Repeat Call MoveScale

`DragSmooth` calls `MoveScale` followed by `MoveSmooth`, and `MoveSmooth` calls `MoveScale` within `MoveSmooth`, resulting in duplicate calls to `MoveScale`.
This commit is contained in:
nzlov 2024-04-07 14:08:26 +08:00 committed by GitHub
parent b718cf4a8c
commit 3171c5bdff
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -540,8 +540,6 @@ func Drag(x, y int, args ...string) {
// //
// robotgo.DragSmooth(10, 10) // robotgo.DragSmooth(10, 10)
func DragSmooth(x, y int, args ...interface{}) { func DragSmooth(x, y int, args ...interface{}) {
x, y = MoveScale(x, y)
Toggle("left") Toggle("left")
MilliSleep(50) MilliSleep(50)
MoveSmooth(x, y, args...) MoveSmooth(x, y, args...)