function onDocumentTouchEnd() {
    isUserInteracting = false;
    if (Date.now() - latestInteraction > 150) {
        speed.pitch = speed.yaw = 0;
    }
    onPointerDownPointerDist = -1;
    latestInteraction = Date.now();

    fireEvent('touchend', event);
}
function onDocumentTouchEnd() {
    isUserInteracting = false;
    if (Date.now() - latestInteraction > 150) {
        speed.pitch = speed.yaw = 0;
    }
    onPointerDownPointerDist = -1;
    latestInteraction = Date.now();

    fireEvent('touchend', event);
}
function onDocumentTouchEnd ( ) { isUserInteracting = false ; if ( Date . now ( ) - latestInteraction > 150 ) { speed . pitch = speed . yaw = 0 ; } onPointerDownPointerDist = - 1 ; latestInteraction = Date . now ( ) ; fireEvent ( 'touchend' , event ) ; }
Event handler for end of touches. Stops panning and/or zooming.
@private
Event handler for end of touches . Stops panning and / or zooming .