Disable Scrolling on Click (compatible with all devices)
![site profile thumbnail](https://screenshots.webflow.com/sites/5e6e114a0f8bc3968ab49b51/20200316185522_26938bef38e5c6f521f911251dcf78b2.png)
There are some times when you need to prevent the user from scrolling when a certain event occurs. An example could be when a modal is opened after clicking a button.
Use the code in this project to easily prevent the users from scrolling when clicking any element.