function onMouseUp(event){
        renderer.domElement.removeEventListener('mousemove', onMouseMove, false);
        var mouse3D = getMouse3D(event, renderer, camera);
        handleUp(mouse3D);
    }
/**
     * Listener for mouse up event.
     * Selects piece from mouse position
     * Call callbacks to check if piece can be dropped and dropping it
     * Moves the piece to the new position
     * Activates the camera rotation
     */
Listener for mouse up event.
Selects piece from mouse position
Call callbacks to check if piece can be dropped and dropping it
Moves the piece to the new position
Activates the camera rotation
Listener for mouse up event . Selects piece from mouse position Call callbacks to check if piece can be dropped and dropping it Moves the piece to the new position Activates the camera rotation
function onMouseUp(event){
        renderer.domElement.removeEventListener('mousemove', onMouseMove, false);
        var mouse3D = getMouse3D(event, renderer, camera);
        handleUp(mouse3D);
    }
function onMouseUp ( event ) { renderer . domElement . removeEventListener ( 'mousemove' , onMouseMove , false ) ; var mouse3D = getMouse3D ( event , renderer , camera ) ; handleUp ( mouse3D ) ; }
Listener for mouse up event.
Listener for mouse up event .