fix: 修复坐标点击被覆盖

This commit is contained in:
余泓铮
2024-08-16 12:07:44 +08:00
parent 29566e9049
commit 7b6638ae10
+1 -2
View File
@@ -2,6 +2,7 @@ package uixt
import ( import (
"fmt" "fmt"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
) )
@@ -110,8 +111,6 @@ func (dExt *DriverExt) DoubleTapXY(x, y float64) error {
x = x * float64(dExt.windowSize.Height) x = x * float64(dExt.windowSize.Height)
y = y * float64(dExt.windowSize.Width) y = y * float64(dExt.windowSize.Width)
} }
x = x * float64(dExt.windowSize.Width)
y = y * float64(dExt.windowSize.Height)
return dExt.Driver.DoubleTapFloat(x, y) return dExt.Driver.DoubleTapFloat(x, y)
} }