MSManipulationStateChanged

Non-standard
This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.

MSManipulationStateChanged fires when the state of an element being manipulated has changed (ie. whenever you start or finish panning or zooming an element).

This proprietary method is specific to Internet Explorer and Microsoft Edge.

Syntax

object.addEventListener("MSManipulationStateChanged", handler, useCapture)

Event handler parameters

  • handler[in], type=function, Function name to be executed when the event is triggered.

Get manipulation states using the lastState and currentState properties.

Example

// Listen for panning state change events 
outerScroller.addEventListener("MSManipulationStateChanged", function(e) {
    // Check to see if they lifted while pulled to the top 
    if (e.currentState == MS_MANIPULATION_STATE_INERTIA && 
        outerScroller.scrollTop === 0) { 
        refreshItemsAsync(); 
    } 
});

See also

Document Tags and Contributors

Contributors to this page: ExE-Boss, mattwojo, erikadoyle
Last updated by: ExE-Boss,