Disable page drag on a mobile device

3

I'm developing a page where we have a <input type="range" min="1" max="10" value="5"> . Whenever I have to drag this input , in case I miss the finger, I accidentally drag the entire page. She goes to and fro.

Can you disable this Drag of the page?

    
asked by anonymous 25.05.2014 / 07:24

1 answer

-1

This is done at the operating system level, follow the link for you to check out.

link

But there is an interesting solution that is:

Once you enter your page you can set the history for yourself.

Example:

document.location.hash = "http://www.meusite.com.br/";

You can test using:

window.history.back()
    
18.01.2015 / 01:46