lib/appium_lib/android/helper.rb in appium_lib-0.9.1 vs lib/appium_lib/android/helper.rb in appium_lib-0.10.0
- old
+ new
@@ -401,16 +401,15 @@
end
# JavaScript code from https://github.com/appium/appium/blob/master/app/android.js
#
# ```javascript
- # Math.round((duration * 1000) / 200)
- # (.20 * 1000) / 200 = 1
+ # Math.round(1.0/28.0 * 28) = 1
# ```
#
# We want steps to be exactly 1. If it's zero then a tap is used instead of a swipe.
def fast_duration
- 0.20
+ 0.0357 # 1.0/28.0
end
# Lists package, activity, and adb shell am start -n value for current app.
# Works on local host only (not remote).
def current_app
\ No newline at end of file