MCPcopy
hub / github.com/lo-th/Oimo.js / onMouseMove

Function onMouseMove

examples/js/controls/OrbitControls.js:694–720  ·  view source on GitHub ↗
( event )

Source from the content-addressed store, hash-verified

692 }
693
694 function onMouseMove( event ) {
695
696 if ( scope.enabled === false ) return;
697
698 event.preventDefault();
699
700 if ( state === STATE.ROTATE ) {
701
702 if ( scope.enableRotate === false ) return;
703
704 handleMouseMoveRotate( event );
705
706 } else if ( state === STATE.DOLLY ) {
707
708 if ( scope.enableZoom === false ) return;
709
710 handleMouseMoveDolly( event );
711
712 } else if ( state === STATE.PAN ) {
713
714 if ( scope.enablePan === false ) return;
715
716 handleMouseMovePan( event );
717
718 }
719
720 }
721
722 function onMouseUp( event ) {
723

Callers

nothing calls this directly

Calls 3

handleMouseMoveRotateFunction · 0.85
handleMouseMoveDollyFunction · 0.85
handleMouseMovePanFunction · 0.85

Tested by

no test coverage detected