Fixed bug with scroll in popup on MacOS