I’m working on building an Instagram-like story section, and I’ve opted for an event-driven approach, which I’ve named ‘Intercomponent Communication.’ This could also be achieved using the MessagePort API. So far, there haven’t been any issues with other buttons like Next and Previous. However, I’ve encountered a problem with the PlayPause (Toggle) component. It emits the event only after I click twice in some components (When images change), but there’s no issue when I set up two separate events for the PlayPause component, such as onClick and onDoubleClick. I suspect the problem arises due to conditional event emission. One notable difference with the PlayPause (Toggle) button compared to the others is its conditional event emission. I’m happy to provide further clarification if needed. Thanks <3