mirror of
https://github.com/tenox7/wrp.git
synced 2024-10-31 21:07:41 +00:00
change int64 to float64 for chromedp.MouseClickXY
This commit is contained in:
parent
fafe232463
commit
e2c06b2e7b
2
wrp.go
2
wrp.go
@ -211,7 +211,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)/float64(w.S)), int64(float64(w.Y)/float64(w.S))))
|
||||
err = chromedp.Run(ctx, chromedp.MouseClickXY(float64(w.X)/float64(w.S), 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…
Reference in New Issue
Block a user