s();

		}

		requestRenderIfNotRequested();

	}

	function unselectAllCountries() {

		numCountriesSelected = 0;
		countryInfos.forEach( ( countryInfo ) => {

			countryInfo.selected = false;

		} );
		resetPalette();

	}

	canvas.addEventListener( 'pointerdown', recordStartTimeAndPosition );
	canvas.addEventListener( 'pointerup', pickCountry );

	function resizeRendererToDisplaySize( renderer ) {

		const canvas = renderer.domElement;
		const width = canvas.clientWidth;
		const height = canvas.clientHeight