change: convertToAbsolutePoint, convertToAbsoluteCoordinates

This commit is contained in:
lilong.129
2025-03-04 20:02:59 +08:00
parent e35aa782c2
commit 65564b958f
8 changed files with 71 additions and 94 deletions

View File

@@ -128,12 +128,7 @@ func (r *Router) doubleTapHandler(c *gin.Context) {
return
}
if tapReq.X < 1 && tapReq.Y < 1 {
err = driver.DoubleTap(tapReq.X, tapReq.Y, option.WithRelative(true))
} else {
err = driver.DoubleTap(tapReq.X, tapReq.Y)
}
err = driver.DoubleTap(tapReq.X, tapReq.Y)
if err != nil {
RenderError(c, err)
return