fix: prepareSwipeAction panic

This commit is contained in:
lilong.129
2024-12-06 16:49:20 +08:00
parent 85cd6ea379
commit 0e7bf9a3d3
2 changed files with 2 additions and 2 deletions

View File

@@ -1 +1 @@
v5.0.0+2412042204
v5.0.0+2412061649

View File

@@ -126,7 +126,7 @@ func (dExt *DriverExt) prepareSwipeAction(params interface{}, options ...ActionO
// custom direction: [fromX, fromY, toX, toY]
if err := dExt.SwipeRelative(params[0], params[1], params[2], params[3], options...); err != nil {
log.Error().Err(err).Msgf("swipe from (%v, %v) to (%v, %v) failed",
d[0], d[1], d[2], d[3])
params[0], params[1], params[2], params[3])
return err
}
} else {