mirror of
https://github.com/tenox7/wrp.git
synced 2025-01-20 11:33:50 +00:00
fixed float/int casting
This commit is contained in:
parent
7c50c6e841
commit
b058831ec6
2
wrp.go
2
wrp.go
@ -178,7 +178,7 @@ func (w wrpReq) capture(c string, out http.ResponseWriter) {
|
||||
var err error
|
||||
if w.X > 0 && w.Y > 0 {
|
||||
log.Printf("%s Mouse Click %d,%d\n", c, w.X, w.Y)
|
||||
err = chromedp.Run(ctx, chromedp.MouseClickXY(int64(float64(w.X)/w.S), int64(float64(w.Y)/w.S)))
|
||||
err = chromedp.Run(ctx, chromedp.MouseClickXY(int64(float64(w.X)/float64(w.S)), int64(float64(w.Y)/float64(w.S))))
|
||||
} else if len(w.F) > 0 {
|
||||
log.Printf("%s Button %v\n", c, w.F)
|
||||
switch w.F {
|
||||
|
Loading…
x
Reference in New Issue
Block a user