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.
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.