@@ -102,11 +102,6 @@ public enum MouseButton
102102 /// The X2 button used for navigating forward.
103103 /// </summary>
104104 Forward = 4 ,
105-
106- /// <summary>
107- /// The button used by Pen pointers to erase.
108- /// </summary>
109- Eraser = 5
110105 }
111106
112107 /// <summary>
@@ -177,7 +172,7 @@ public override Dictionary<string, object> ToDictionary()
177172 /// <returns>The action representing the pointer down gesture.</returns>
178173 public Interaction CreatePointerDown ( MouseButton button )
179174 {
180- return new PointerDownInteraction ( this , button , new PointerEventProperties ( ) ) ;
175+ return CreatePointerDown ( button , new PointerEventProperties ( ) ) ;
181176 }
182177
183178 /// <summary>
@@ -201,7 +196,7 @@ public Interaction CreatePointerDown(MouseButton button, PointerEventProperties
201196 /// <returns>The action representing the pointer up gesture.</returns>
202197 public Interaction CreatePointerUp ( MouseButton button )
203198 {
204- return new PointerUpInteraction ( this , button , new PointerEventProperties ( ) ) ;
199+ return CreatePointerUp ( button , new PointerEventProperties ( ) ) ;
205200 }
206201
207202 /// <summary>
@@ -228,7 +223,7 @@ public Interaction CreatePointerUp(MouseButton button, PointerEventProperties pr
228223 /// <returns>The action representing the pointer move gesture.</returns>
229224 public Interaction CreatePointerMove ( IWebElement target , int xOffset , int yOffset , TimeSpan duration )
230225 {
231- return new PointerMoveInteraction ( this , target , CoordinateOrigin . Element , xOffset , yOffset , duration , new PointerEventProperties ( ) ) ;
226+ return CreatePointerMove ( target , xOffset , yOffset , duration , new PointerEventProperties ( ) ) ;
232227 }
233228
234229 /// <summary>
@@ -258,12 +253,7 @@ public Interaction CreatePointerMove(IWebElement target, int xOffset, int yOffse
258253 /// Users should us the other CreatePointerMove overload to move to a specific element.</exception>
259254 public Interaction CreatePointerMove ( CoordinateOrigin origin , int xOffset , int yOffset , TimeSpan duration )
260255 {
261- if ( origin == CoordinateOrigin . Element )
262- {
263- throw new ArgumentException ( "Using a value of CoordinateOrigin.Element without an element is not supported." , nameof ( origin ) ) ;
264- }
265-
266- return new PointerMoveInteraction ( this , null , origin , xOffset , yOffset , duration , new PointerEventProperties ( ) ) ;
256+ return CreatePointerMove ( origin , xOffset , yOffset , duration , new PointerEventProperties ( ) ) ;
267257 }
268258
269259 /// <summary>
0 commit comments