Scroll to toggle the affix state, or call the JavaScript API.