MCPcopy Create free account
hub / github.com/MankaiHuang/screen-visualization / touchend

Function touchend

public/iframe/lib/js/TrackballControls.js:674–694  ·  view source on GitHub ↗
( event )

Source from the content-addressed store, hash-verified

672 }
673
674 function touchend( event ) {
675
676 if ( scope.enabled === false ) return;
677
678 switch ( event.touches.length ) {
679
680 case 0:
681 _state = STATE.NONE;
682 break;
683
684 case 1:
685 _state = STATE.TOUCH_ROTATE;
686 _moveCurr.copy( getMouseOnCircle( event.touches[ 0 ].pageX, event.touches[ 0 ].pageY ) );
687 _movePrev.copy( _moveCurr );
688 break;
689
690 }
691
692 scope.dispatchEvent( endEvent );
693
694 }
695
696 function contextmenu( event ) {
697

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected