@@ -221,6 +221,15 @@ public Interaction CreatePointerCancel()
221
221
private class PointerDownInteraction : Interaction
222
222
{
223
223
private MouseButton button ;
224
+ private double ? width ;
225
+ private double ? height ;
226
+ private double ? pressure ;
227
+ private double ? tangentialPressure ;
228
+ private int ? tiltX ;
229
+ private int ? tiltY ;
230
+ private int ? twist ;
231
+ private double ? altitudeAngle ;
232
+ private double ? azimuthAngle ;
224
233
225
234
public PointerDownInteraction ( InputDevice sourceDevice , MouseButton button )
226
235
: base ( sourceDevice )
@@ -234,6 +243,51 @@ public override Dictionary<string, object> ToDictionary()
234
243
toReturn [ "type" ] = "pointerDown" ;
235
244
toReturn [ "button" ] = Convert . ToInt32 ( this . button , CultureInfo . InvariantCulture ) ;
236
245
246
+ if ( this . width . HasValue )
247
+ {
248
+ toReturn [ "width" ] = this . width . Value ;
249
+ }
250
+
251
+ if ( this . height . HasValue )
252
+ {
253
+ toReturn [ "height" ] = this . width . Value ;
254
+ }
255
+
256
+ if ( this . pressure . HasValue )
257
+ {
258
+ toReturn [ "pressure" ] = this . width . Value ;
259
+ }
260
+
261
+ if ( this . tangentialPressure . HasValue )
262
+ {
263
+ toReturn [ "tangentialPressure" ] = this . width . Value ;
264
+ }
265
+
266
+ if ( this . tiltX . HasValue )
267
+ {
268
+ toReturn [ "tiltX" ] = this . width . Value ;
269
+ }
270
+
271
+ if ( this . tiltY . HasValue )
272
+ {
273
+ toReturn [ "tiltY" ] = this . width . Value ;
274
+ }
275
+
276
+ if ( this . twist . HasValue )
277
+ {
278
+ toReturn [ "twist" ] = this . width . Value ;
279
+ }
280
+
281
+ if ( this . altitudeAngle . HasValue )
282
+ {
283
+ toReturn [ "altitudeAngle" ] = this . width . Value ;
284
+ }
285
+
286
+ if ( this . azimuthAngle . HasValue )
287
+ {
288
+ toReturn [ "azimuthAngle" ] = this . width . Value ;
289
+ }
290
+
237
291
return toReturn ;
238
292
}
239
293
@@ -246,6 +300,15 @@ public override string ToString()
246
300
private class PointerUpInteraction : Interaction
247
301
{
248
302
private MouseButton button ;
303
+ private double ? width ;
304
+ private double ? height ;
305
+ private double ? pressure ;
306
+ private double ? tangentialPressure ;
307
+ private int ? tiltX ;
308
+ private int ? tiltY ;
309
+ private int ? twist ;
310
+ private double ? altitudeAngle ;
311
+ private double ? azimuthAngle ;
249
312
250
313
public PointerUpInteraction ( InputDevice sourceDevice , MouseButton button )
251
314
: base ( sourceDevice )
@@ -259,6 +322,51 @@ public override Dictionary<string, object> ToDictionary()
259
322
toReturn [ "type" ] = "pointerUp" ;
260
323
toReturn [ "button" ] = Convert . ToInt32 ( this . button , CultureInfo . InvariantCulture ) ;
261
324
325
+ if ( this . width . HasValue )
326
+ {
327
+ toReturn [ "width" ] = this . width . Value ;
328
+ }
329
+
330
+ if ( this . height . HasValue )
331
+ {
332
+ toReturn [ "height" ] = this . width . Value ;
333
+ }
334
+
335
+ if ( this . pressure . HasValue )
336
+ {
337
+ toReturn [ "pressure" ] = this . width . Value ;
338
+ }
339
+
340
+ if ( this . tangentialPressure . HasValue )
341
+ {
342
+ toReturn [ "tangentialPressure" ] = this . width . Value ;
343
+ }
344
+
345
+ if ( this . tiltX . HasValue )
346
+ {
347
+ toReturn [ "tiltX" ] = this . width . Value ;
348
+ }
349
+
350
+ if ( this . tiltY . HasValue )
351
+ {
352
+ toReturn [ "tiltY" ] = this . width . Value ;
353
+ }
354
+
355
+ if ( this . twist . HasValue )
356
+ {
357
+ toReturn [ "twist" ] = this . width . Value ;
358
+ }
359
+
360
+ if ( this . altitudeAngle . HasValue )
361
+ {
362
+ toReturn [ "altitudeAngle" ] = this . width . Value ;
363
+ }
364
+
365
+ if ( this . azimuthAngle . HasValue )
366
+ {
367
+ toReturn [ "azimuthAngle" ] = this . width . Value ;
368
+ }
369
+
262
370
return toReturn ;
263
371
}
264
372
@@ -295,6 +403,15 @@ private class PointerMoveInteraction : Interaction
295
403
private int y = 0 ;
296
404
private TimeSpan duration = TimeSpan . MinValue ;
297
405
private CoordinateOrigin origin = CoordinateOrigin . Pointer ;
406
+ private double ? width ;
407
+ private double ? height ;
408
+ private double ? pressure ;
409
+ private double ? tangentialPressure ;
410
+ private int ? tiltX ;
411
+ private int ? tiltY ;
412
+ private int ? twist ;
413
+ private double ? altitudeAngle ;
414
+ private double ? azimuthAngle ;
298
415
299
416
public PointerMoveInteraction ( InputDevice sourceDevice , IWebElement target , CoordinateOrigin origin , int x , int y , TimeSpan duration )
300
417
: base ( sourceDevice )
@@ -343,6 +460,51 @@ public override Dictionary<string, object> ToDictionary()
343
460
toReturn [ "x" ] = this . x ;
344
461
toReturn [ "y" ] = this . y ;
345
462
463
+ if ( this . width . HasValue )
464
+ {
465
+ toReturn [ "width" ] = this . width . Value ;
466
+ }
467
+
468
+ if ( this . height . HasValue )
469
+ {
470
+ toReturn [ "height" ] = this . width . Value ;
471
+ }
472
+
473
+ if ( this . pressure . HasValue )
474
+ {
475
+ toReturn [ "pressure" ] = this . width . Value ;
476
+ }
477
+
478
+ if ( this . tangentialPressure . HasValue )
479
+ {
480
+ toReturn [ "tangentialPressure" ] = this . width . Value ;
481
+ }
482
+
483
+ if ( this . tiltX . HasValue )
484
+ {
485
+ toReturn [ "tiltX" ] = this . width . Value ;
486
+ }
487
+
488
+ if ( this . tiltY . HasValue )
489
+ {
490
+ toReturn [ "tiltY" ] = this . width . Value ;
491
+ }
492
+
493
+ if ( this . twist . HasValue )
494
+ {
495
+ toReturn [ "twist" ] = this . width . Value ;
496
+ }
497
+
498
+ if ( this . altitudeAngle . HasValue )
499
+ {
500
+ toReturn [ "altitudeAngle" ] = this . width . Value ;
501
+ }
502
+
503
+ if ( this . azimuthAngle . HasValue )
504
+ {
505
+ toReturn [ "azimuthAngle" ] = this . width . Value ;
506
+ }
507
+
346
508
return toReturn ;
347
509
}
348
510
0 commit comments