Sometimes, we want to disable scrolling when touch moving certain element with CSS.
In this article, we’ll look at how to disable scrolling when touch moving certain element with CSS.
How to disable scrolling when touch moving certain element with CSS?
To disable scrolling when touch moving certain element with CSS, we set the element’s touch-action
CSS style to none
.
For instance, we write
touch-action: none;
to disable touch on the element when moving certain element when we add this style to our CSS.
Conclusion
To disable scrolling when touch moving certain element with CSS, we set the element’s touch-action
CSS style to none
.
One reply on “How to disable scrolling when touch moving certain element with CSS?”
Is it even possible to disable scrolling in this particular situation? If you can disable scrolling in this situation, that’s pretty good news.