Table of Contents

Class TouchPoint

Namespace
Selenium.WebDriver.BiDi.Cdp.Input
Assembly
Selenium.WebDriver.BiDi.Cdp.dll
public sealed record TouchPoint : IEquatable<TouchPoint>
Inheritance
TouchPoint
Implements
Inherited Members

Constructors

TouchPoint(double, double)

public TouchPoint(double X, double Y)

Parameters

X double

X coordinate of the event relative to the main frame's viewport in CSS pixels.

Y double

Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.

Properties

Force

Force (default: 1.0).

public double? Force { get; init; }

Property Value

double?

Id

Identifier used to track touch sources between events, must be unique within an event.

public double? Id { get; init; }

Property Value

double?

RadiusX

X radius of the touch area (default: 1.0).

public double? RadiusX { get; init; }

Property Value

double?

RadiusY

Y radius of the touch area (default: 1.0).

public double? RadiusY { get; init; }

Property Value

double?

RotationAngle

Rotation angle (default: 0.0).

public double? RotationAngle { get; init; }

Property Value

double?

TangentialPressure

The normalized tangential pressure, which has a range of [-1,1] (default: 0).

public double? TangentialPressure { get; init; }

Property Value

double?

TiltX

The plane angle between the Y-Z plane and the plane containing both the stylus axis and the Y axis, in degrees of the range [-90,90], a positive tiltX is to the right (default: 0)

public double? TiltX { get; init; }

Property Value

double?

TiltY

The plane angle between the X-Z plane and the plane containing both the stylus axis and the X axis, in degrees of the range [-90,90], a positive tiltY is towards the user (default: 0).

public double? TiltY { get; init; }

Property Value

double?

Twist

The clockwise rotation of a pen stylus around its own major axis, in degrees in the range [0,359] (default: 0).

public long? Twist { get; init; }

Property Value

long?

X

X coordinate of the event relative to the main frame's viewport in CSS pixels.

public double X { get; init; }

Property Value

double

Y

Y coordinate of the event relative to the main frame's viewport in CSS pixels. 0 refers to the top of the viewport and Y increases as it proceeds towards the bottom of the viewport.

public double Y { get; init; }

Property Value

double