Stand-alone parallax scrolling library for mobile (Android + iOS) and desktop. No jQuery. Just plain JavaScript (and some love).
18.53k
stars
3.5k
forks
source link
Is it possible to disable touchmove (scroll) on mobile ? #813
Open
PsykOlivier opened 8 years ago
Hello,
On mobile device, I would like to disable touchmove (disable user scroll), and force the user to use a menu and arrows to navigate.
So I try in JS :
$('body').on('touchmove', function(e) { e.preventDefault(); });
OK, the scroll on body is disabled, and the user must use the menu and arrows. But, if i do a little "swipe" on the screen, the website back to top ?!
Do you an issue to disable touchmouv of skrollR on mobile device ?