DoubleTap支持绝对坐标

This commit is contained in:
余泓铮
2025-02-24 11:50:36 +08:00
parent 3b509ba6c6
commit 165aab0dc8
8 changed files with 24 additions and 27 deletions

View File

@@ -105,9 +105,9 @@ func (r *Router) doubleTapHandler(c *gin.Context) {
}
if tapReq.X < 1 && tapReq.Y < 1 {
err = driver.DoubleTapXY(tapReq.X, tapReq.Y)
err = driver.DoubleTap(tapReq.X, tapReq.Y)
} else {
err = driver.DoubleTapXY(tapReq.X, tapReq.Y,
err = driver.DoubleTap(tapReq.X, tapReq.Y,
option.WithAbsoluteCoordinate(true))
}