INNER CODE UNIT · JavaScript

setupScrollPrevention

in28minutes/spring-microservices-v3 · 99.presentation/js/reveal.js:765

	function setupScrollPrevention() {

		setInterval( function() {
			if( dom.wrapper.scrollTop !== 0 || dom.wrapper.scrollLeft !== 0 ) {
				dom.wrapper.scrollTop = 0;
				dom.wrapper.scrollLeft = 0;
			}
		}, 1000 );

	}

	/**
	 * Creates an HTML element and returns a reference to it.
	 * If the element already exists the existing instance will
	 * be returned.
	 *
	 * @param {HTMLElement} container
	 * @param {string} tagname

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…