File tree 2 files changed +2
-9
lines changed
lib/appium_lib_core/common/touch_action
2 files changed +2
-9
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ Read `release_notes.md` for commit level details.
10
10
### Bug fixes
11
11
12
12
### Deprecations
13
+ - ` :offset_x ` and ` :offset_y ` in ` TouchAction#swipe ` is deprecated in favor of ` :end_x ` and ` :end_y `
14
+
13
15
14
16
## [ 2.1.1] - 2018-11-23
15
17
### Enhancements
Original file line number Diff line number Diff line change @@ -142,15 +142,6 @@ def swipe(opts)
142
142
end_x = opts . fetch :end_x , 0
143
143
end_y = opts . fetch :end_y , 0
144
144
145
- if opts [ :offset_x ]
146
- ::Appium ::Logger . warn ( '[DEPRECATED] :offset_x was renamed to :end_x to indicate as an absolute point.' )
147
- end_x = opts . fetch :offset_x , 0
148
- end
149
- if opts [ :offset_y ]
150
- ::Appium ::Logger . warn ( '[DEPRECATED] :offset_y was renamed to :end_y to indicate as an absolute point.' )
151
- end_y = opts . fetch :offset_y , 0
152
- end
153
-
154
145
duration = opts . fetch :duration , 200
155
146
156
147
press x : start_x , y : start_y
You can’t perform that action at this time.
0 commit comments