EN
이 콘텐츠는 한국어로 제공되지 않아 영어 버전으로 표시됩니다.

inertiaDestinationX property

Represents the predicted horizontal scroll offset after the inertia phase completes.

This property is read-only.

IE11

 

Syntax


var el = document.getElementById('menu');
el.addEventListener('MSManipulationStateChanged', handleManipChange, false);

function handleManipChange(manipEvt) {
    // Inertia destination coordinates are only valid during inertia state change events
    if(manipEvt.currentState == 'MSManipulationEvent.MS_MANIPULATION_STATE_INERTIA') {
      var x = manipEvt.inertiaDestinationX;
      var y = manipEvt.inertiaDestinationY;
      
      // Now you can determine, for example, if and how to play a panning animation
    }
}

Property values

Type: long

Remarks

The value of the inertiaDestinationX property is only valid when its parent MSManipulationEvent has a currentState value of MS_MANIPULATION_STATE_INERTIA.

See also

MSManipulationEvent

 

 

표시:
© 2014 Microsoft