Feature affix events

Fixing my own issues from previous pull request https://github.com/twbs/bootstrap/pull/8113

This should now conform to the event guidelines. Please let me know if I made any other mistakes that need to be resolved.