I am working on a UI that uses horizontal scrolling in a div element (using overflow: scroll). I cannot scroll to the left, because it would start the
div
overflow: scroll
Yes, in order to disable default behavior (swipe, pinch etc.) all you have to do is to add:
event.preventDefault();
In you case simply register touchMove listener and use preventDefault() there (in function "touchmove").
element.addEventListener("touchmove", touchMove, false);