Popup and mouse wheel

I’m developing an app that uses FilterTable and PopupButton add-ons. Both add-ons are really good but I have the following problem: When I open a popup window and I use the mouse wheel to scroll then the popup window remains fixed in the same position and is not following it’s attached. I don’t want that any popup keeps following its attached control at all, I’d be content closing with the popup window when the mouse wheel makes the container window scroll.

There must be an event or something I could use to detect the scroll.

How can I achieve this?

Thank you in advance.

Best regards.

One way to approach this is by adding an event listener for the scroll action within the container. You can listen for the mouse wheel event and trigger the popup to close when a scroll occurs. Many popup libraries have built-in options for this, or you can implement custom JavaScript to achieve the desired behavior.

You might also find some useful insights in https://claspo.io/blog/wheel-popups-what-are-those-and-how-to-create-one/ on wheel pop-ups and how to create one, which could guide you in tweaking the behavior of your pop-up when scrolling.

Let me know if you need further help or examples!

Best regards,