SyntaxFix
Write A Post
Hire A Developer
Questions
Set the touch-action CSS property to none, which works even with passive event listeners:
none
touch-action: none;
Applying this property to an element will not trigger the default (scroll) behavior when the event is originating from that element.