GestureRecognizer.ManipulationInertiaStarting Event
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs when all contact points are lifted during a manipulation and the velocity of the manipulation is significant enough to initiate inertia behavior (translation, expansion, or rotation continue after the input pointers are lifted).
// Register
event_token ManipulationInertiaStarting(TypedEventHandler<GestureRecognizer, ManipulationInertiaStartingEventArgs const&> const& handler) const;
// Revoke with event_token
void ManipulationInertiaStarting(event_token const* cookie) const;
// Revoke with event_revoker
GestureRecognizer::ManipulationInertiaStarting_revoker ManipulationInertiaStarting(auto_revoke_t, TypedEventHandler<GestureRecognizer, ManipulationInertiaStartingEventArgs const&> const& handler) const;
public event TypedEventHandler<GestureRecognizer,ManipulationInertiaStartingEventArgs> ManipulationInertiaStarting;
function onManipulationInertiaStarting(eventArgs) { /* Your code */ }
gestureRecognizer.addEventListener("manipulationinertiastarting", onManipulationInertiaStarting);
gestureRecognizer.removeEventListener("manipulationinertiastarting", onManipulationInertiaStarting);
- or -
gestureRecognizer.onmanipulationinertiastarting = onManipulationInertiaStarting;
Public Custom Event ManipulationInertiaStarting As TypedEventHandler(Of GestureRecognizer, ManipulationInertiaStartingEventArgs)
Inertia is the tendency of an object to resist any change in its state of rest or its velocity.
This event is raised before inertia processing.
Inertia behavior for this manipulation can be customized in the handler for this event. For example, inertia can be set to end after a specific distance or UI is displayed.
Note
These settings cannot be customized after the event.
- ManipulationInertiaStartingEventArgs
- Touch interactions - Manipulation events
- User interaction mode sample
- Focus visuals sample
- Input: Device capabilities sample
- Input: Simplified ink sample
- Input: Windows 8 gestures sample
- Input: XAML user input events sample
- XAML scrolling, panning, and zooming sample
- DirectX touch input sample
- Input: Manipulations and gestures (C++) sample
- Input: Touch hit testing sample
- Input source identification sample
- Touch injection sample
- Win32 touch hit-testing sample