fix overflowing ripple on safari