fix: swipe 2 times

This commit is contained in:
debugtalk
2022-09-29 11:04:14 +08:00
parent 4d9c77020b
commit bcd8e45bfd

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)
}