Reputation: 529
I have a task of disable scroll on clicking a button and again enable it on another button click.I have searched a lot in internet and got some answer as below which are working in every devices except in samsung s5.
One method was adding overflow:hidden to the body tag there by disabling scroll
Another is by adding the following js function,
$('#element').on('scroll touchmove mousewheel', function(e){
e.preventDefault();
e.stopPropagation();
return false;
})
But both didnt work in samsung s5 , Give me any link or solution for this bug
Upvotes: 1
Views: 94
Reputation: 529
I got the answer for this question . You can use
JS
$("#popupMenu").delegate('.ui-content', 'touchmove', false);
Upvotes: 3