fix: iOS tap_xy scale adaption error

This commit is contained in:
buyuxiang
2023-08-24 20:10:46 +08:00
parent 244bf039e6
commit 249e30ad2d
5 changed files with 18 additions and 4 deletions

View File

@@ -450,3 +450,8 @@ func GenNameWithTimestamp(tmpl string) string {
}
return fmt.Sprintf(tmpl, time.Now().Unix())
}
func IsZeroFloat64(f float64) bool {
threshold := 1e-3
return math.Abs(f) < threshold
}