Improve/Simplify Mouse Wheel Scroll Behavior (#470)

* Improve/Simplify Mouse Wheel Scroll Behavior

* Update hid_mouse_absolute.go

Attempt to fix line reported as improperly formatted by lint.

* Update utils.go

Removed abs() function since lint states it is no longer used.
This commit is contained in:
rmschooley
2025-05-19 06:03:33 -05:00
committed by GitHub
parent fc3dbcd820
commit 0a4a1af80e
3 changed files with 17 additions and 33 deletions

View File

@@ -7,14 +7,6 @@ import (
"path/filepath"
)
// Helper function to get absolute value of float64
func abs(x float64) float64 {
if x < 0 {
return -x
}
return x
}
func joinPath(basePath string, paths []string) string {
pathArr := append([]string{basePath}, paths...)
return filepath.Join(pathArr...)