From 3d2ef162e6afbadcb8a90dede50ba1abad5c2ce9 Mon Sep 17 00:00:00 2001 From: vcaesar Date: Mon, 10 Sep 2018 13:39:09 -0400 Subject: [PATCH] update godoc and clearer parameter name --- robotgo.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/robotgo.go b/robotgo.go index b43ebee..99f1276 100644 --- a/robotgo.go +++ b/robotgo.go @@ -468,15 +468,16 @@ func SetMouseDelay(delay int) { } // ScrollMouse scroll the mouse -func ScrollMouse(x int, y string) { +func ScrollMouse(x int, direction string) { cx := C.size_t(x) - cy := C.CString(y) + cy := C.CString(direction) C.scroll_mouse(cx, cy) defer C.free(unsafe.Pointer(cy)) } // Scroll scroll the mouse with x, y +// robotgo.Scroll(x, y, msDelay int) func Scroll(x, y int, args ...int) { var msDelay = 10 if len(args) > 0 {