Triggering event on  when affix is changed