        var newX = ev.clientX;
            var newY = ev.clientY;

            var deltaX = newX - lastMouseX;
            roll += (deltaX / 100.0);

            var deltaY = newY - lastMouseY;
            pitch += (deltaY / 100.0);

            lastMouseX = newX;
            lastMouseY = newY;
            updateCamera();
        }

        function drawHandleMouseMove(ev) {
            if(drawing && tempPositions.length > 0) {
                const drawPoint = getPickingPoint(ev.clientX, ev.clientY);
     