cancel scroll on scroll js code example Example: javascript cancel scroll const pause = (scroll) => window.clearTimeout(scroll)