fix: swipe 2 times

This commit is contained in:
debugtalk
2022-09-29 11:04:14 +08:00
parent e2049ca73e
commit dad3676c3d

View File

@@ -31,7 +31,7 @@ func (dExt *DriverExt) SwipeRelative(fromX, fromY, toX, toY float64, identifier
"enable": true,
"data": identifier[0],
})
dExt.Driver.SwipeFloat(fromX, fromY, toX, toY, option)
return dExt.Driver.SwipeFloat(fromX, fromY, toX, toY, option)
}
return dExt.Driver.SwipeFloat(fromX, fromY, toX, toY)
}