TouchEvent

struct

Namespace: Vuplex.WebView

A touch event that can be dispatched with StandaloneWebView.DispatchTouchEvent().

Summary

Public properties

Point

Vector2 Point

The normalized point of the touch event.

The x and y components of the point are values in the range of [0, 1] that are normalized to the webview's width and height. For example, point.x = xInPixels / webView.SizeInPixels.x. Like in the browser, the origin is in the upper-left corner, the positive direction of the y-axis is down, and the positive direction of the x-axis is right.

RadiusX

float RadiusX

(optional) The X radius of the touch in pixels. If not set, the default value of 25px will be used.

RadiusY

float RadiusY

(optional) The Y radius of the touch in pixels. If not set, the default value of 25px will be used.

RotationAngle

float RotationAngle

(optional) The rotation angle in radians.

RotationAngle

float RotationAngle

(optional) The normalized pressure of the touch in the range of [0, 1].

TouchID

int TouchID

ID of the touch. This value must be unique per touch but is shared by al events for the same touch (i.e. the Start, Move, and End events for single touch share the same TouchID). This can be any number except -1, an a maximum of 16 concurrent touches are tracked.

Type

TouchEventType Type

The touch event type. Touches begin with one TouchEventType.Start event, followed by zero or more TouchEventType.Move events, and finally one TouchEventType.End or TouchEventType.Cancel event.