changed scroll event to focus  event with then triggering a custom event name