Track scroll events to open/close menu