From 3171c5bdff584a84abde8fc4ea46d06b82a38bc3 Mon Sep 17 00:00:00 2001 From: nzlov Date: Sun, 7 Apr 2024 14:08:26 +0800 Subject: [PATCH] fix: DragSmooth Repeat Call MoveScale `DragSmooth` calls `MoveScale` followed by `MoveSmooth`, and `MoveSmooth` calls `MoveScale` within `MoveSmooth`, resulting in duplicate calls to `MoveScale`. --- robotgo.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/robotgo.go b/robotgo.go index b445a8fd..f4660ac8 100644 --- a/robotgo.go +++ b/robotgo.go @@ -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...)