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