Update custom-functions.js

Prevent janky scroll when user is not trying to scroll the `#header-scroll` element