I found out that the parent gallery controller also listens to the child action. Is this intentional? If this is intended, do you have advice on how to make the parent controller not listening to the child action?
I realized I was completely mistaken in my initial response and that Stimulus does support nested scopes that allow controllers to be nested without the type of duplication you’re seeing. This was discussed here. So doubling up on window events (which I’m able to reproduce) seems like a bug. Good catch! Apologies for the earlier, misleading response!