PopupButton and scrolling

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 have seen that the popup opens with an absolute layout). I don’t need that any popup keeps following its attached control at all, I’d be content closing 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.

I think the PopupButton component itself should detect scrolling in that case. However, detecting the mouse scroll event is not enough alone, because it’s possible that scolling is done for a scrollable component inside the popup and in that case the popup should stay open.

-Henri