Blazorise Gestures API
Explore the Blazorise Gestures API reference for parameters, events, methods, and related types.
For examples and usage guidance, see the Gestures documentation.
API
Parameters
| Parameter | Default | Type |
|---|---|---|
ChildContent | null | RenderFragment |
Gets or sets the content that will be observed for gestures. | ||
Direction | All | GestureDirection |
Gets or sets the directions that can produce swipe events. Possible values: NoneLeftRightHorizontalUpDownVerticalAll | ||
Disabled | false | bool |
Disables gesture handling. | ||
LongPressDuration | 500 | int |
Gets or sets the duration in milliseconds required to recognize a long press. | ||
LongPressMoveTolerance | 10 | double |
Gets or sets the movement tolerance in pixels before a pending long press is canceled. | ||
MoveThrottleInterval | 50 | int |
Gets or sets the minimum interval, in milliseconds, between GestureMoved callbacks. | ||
PreventNativeDrag | true | bool |
Gets or sets whether native browser dragging is prevented inside the gesture area. | ||
SwipeThreshold | 50 | double |
Gets or sets the minimum swipe distance in pixels. | ||
SwipeVelocityThreshold | 0.3 | double |
Gets or sets the minimum swipe velocity in pixels per millisecond. | ||
TapMaximumDistance | 10 | double |
Gets or sets the maximum movement in pixels that can still be recognized as a tap. | ||
TapMaximumDuration | 300 | int |
Gets or sets the maximum duration in milliseconds that can still be recognized as a tap. | ||
TouchAction | Auto | GestureTouchAction |
Gets or sets the browser touch-action behavior applied to the gestures element. Possible values: AutoNonePanXPanYManipulation | ||
Events
| Event | Type |
|---|---|
GestureEnded | EventCallback<GestureEventArgs> |
Raised when a gesture ends or is canceled. | |
GestureMoved | EventCallback<GestureEventArgs> |
Raised while an active gesture moves. The callback is throttled by MoveThrottleInterval. | |
GestureStarted | EventCallback<GestureEventArgs> |
Raised when a gesture starts. | |
LongPressed | EventCallback<LongPressEventArgs> |
Raised when an active gesture is held long enough to be recognized as a long press. | |
Swiped | EventCallback<SwipeEventArgs> |
Raised when a completed gesture is recognized as a swipe. | |
Tapped | EventCallback<TapEventArgs> |
Raised when a completed gesture is recognized as a tap. | |
Methods
| Method | Return | Parameters |
|---|---|---|
OnGestureEnded | Task | GestureEventArgs eventArgs |
Handles a gesture end notification from the browser.
| ||
OnGestureMoved | Task | GestureEventArgs eventArgs |
Handles a gesture move notification from the browser.
| ||
OnGestureStarted | Task | GestureEventArgs eventArgs |
Handles a gesture start notification from the browser.
| ||
OnLongPressed | Task | LongPressEventArgs eventArgs |
Handles a long-press notification from the browser.
| ||
OnSwiped | Task | SwipeEventArgs eventArgs |
Handles a swipe notification from the browser.
| ||
OnTapped | Task | TapEventArgs eventArgs |
Handles a tap notification from the browser.
| ||