src/controls.js
function onMouseMove(event, env, isSideEffectsDisabled) {
    event.preventDefault();
    mouse.move(event, env ? env.camera : null);

    if (!env || isSideEffectsDisabled) {
        return;
    }

    if(mouse.keys[1] && !mouse.keys[3]) {
        moveObject(env.library, env.camera, env.selector);
    } else {
        focusObject(env.library, env.camera, env.selector);
    }
}
function onMouseMove(event, env, isSideEffectsDisabled) {
    event.preventDefault();
    mouse.move(event, env ? env.camera : null);

    if (!env || isSideEffectsDisabled) {
        return;
    }

    if(mouse.keys[1] && !mouse.keys[3]) {
        moveObject(env.library, env.camera, env.selector);
    } else {
        focusObject(env.library, env.camera, env.selector);
    }
}
function onMouseMove ( event , env , isSideEffectsDisabled ) { event . preventDefault ( ) ; mouse . move ( event , env ? env . camera : null ) ; if ( ! env || isSideEffectsDisabled ) { return ; } if ( mouse . keys [ 1 ] && ! mouse . keys [ 3 ] ) { moveObject ( env . library , env . camera , env . selector ) ; } else { focusObject ( env . library , env . camera , env . selector ) ; } }
Triggers object focus
@alias module:lib3d.onMouseMove
@param {Object} event - mouse event
@param {Environment} env - affected environment
@param {Boolean} isSideEffectsDisabled - disable side effects like focusing, selecting, moving objects
Triggers object focus