onDocumentMouseUp: function()

in app/scripts/views/mainPage/view3d.js [722:746]


    onDocumentMouseUp: function (event) {
        event.preventDefault();

        var config = this.eventConfig;

        this.get('cameraControls').enabled = true;

        var dragNode = this.get('dragNode');

        if (dragNode !== undefined && dragNode !== null) {
            var plane = this.get('nodeMoveHelperPlane');
            plane.position.copy(dragNode.position);
            plane.scale.x = this.dragPlaneSelectedScale;
            plane.scale.y = this.dragPlaneSelectedScale;
            plane.scale.z = this.dragPlaneSelectedScale;

            App.ApiProvider.storeNodeCoords(dragNode.nodeId, {
                x: dragNode.position.x,
                y: dragNode.position.y,
                z: dragNode.position.z
            });

            this.set('dragNode', null);
        }
    },