Prevent modal from triggering while scrolling