There absolutely is, and @kuligaposten created an example that did exactly this on this post…
But now, there appears to be a ping-pong game at the link he posted. I’d reach out to him and ask if he could possibly put the example back up for you to look at. I’m not exactly sure how he did it. I could probably modify my component to do what you want, but I’m up to my ears in work for clients right now, so it wouldn’t be something I could do right away.