It's enough (to disable swipes) only with this code line in .js file:
window.addEventListener("touchmove", function (e) { e.preventDefault(); }, { passive: false });
P.S. Tested only on Chrome.