[Mac] fix error when scrolling mouse wheel on popup