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

ParameterDefaultType
ChildContentnullRenderFragment

Gets or sets the content that will be observed for gestures.
DirectionAllGestureDirection

Gets or sets the directions that can produce swipe events.
Possible values:NoneLeftRightHorizontalUpDownVerticalAll
Disabledfalsebool

Disables gesture handling.
LongPressDuration500int

Gets or sets the duration in milliseconds required to recognize a long press.
LongPressMoveTolerance10double

Gets or sets the movement tolerance in pixels before a pending long press is canceled.
MoveThrottleInterval50int

Gets or sets the minimum interval, in milliseconds, between GestureMoved callbacks.
PreventNativeDragtruebool

Gets or sets whether native browser dragging is prevented inside the gesture area.
SwipeThreshold50double

Gets or sets the minimum swipe distance in pixels.
SwipeVelocityThreshold0.3double

Gets or sets the minimum swipe velocity in pixels per millisecond.
TapMaximumDistance10double

Gets or sets the maximum movement in pixels that can still be recognized as a tap.
TapMaximumDuration300int

Gets or sets the maximum duration in milliseconds that can still be recognized as a tap.
TouchActionAutoGestureTouchAction

Gets or sets the browser touch-action behavior applied to the gestures element.
Possible values:AutoNonePanXPanYManipulation

Events

EventType
GestureEndedEventCallback<GestureEventArgs>

Raised when a gesture ends or is canceled.
GestureMovedEventCallback<GestureEventArgs>

Raised while an active gesture moves. The callback is throttled by MoveThrottleInterval.
GestureStartedEventCallback<GestureEventArgs>

Raised when a gesture starts.
LongPressedEventCallback<LongPressEventArgs>

Raised when an active gesture is held long enough to be recognized as a long press.
SwipedEventCallback<SwipeEventArgs>

Raised when a completed gesture is recognized as a swipe.
TappedEventCallback<TapEventArgs>

Raised when a completed gesture is recognized as a tap.

Methods

MethodReturnParameters
OnGestureEndedTaskGestureEventArgs eventArgs

Handles a gesture end notification from the browser.
OnGestureMovedTaskGestureEventArgs eventArgs

Handles a gesture move notification from the browser.
OnGestureStartedTaskGestureEventArgs eventArgs

Handles a gesture start notification from the browser.
OnLongPressedTaskLongPressEventArgs eventArgs

Handles a long-press notification from the browser.
OnSwipedTaskSwipeEventArgs eventArgs

Handles a swipe notification from the browser.
OnTappedTaskTapEventArgs eventArgs

Handles a tap notification from the browser.