L
L
littleguga2016-04-05 18:11:32
JavaScript
littleguga, 2016-04-05 18:11:32

How to disable page dragging in iOS using pure javascript, but to make scrolling work in blocks?

How to disable overscroll in pure javascript (when the page is dragged up / down more than itself)
Here is an example

spoiler
20120809_rubberbandpatent.jpg

Found a question on stackoverflow, but all the pure JS solutions didn't work for me.
It is necessary that blocks that have a scroll can be scrolled.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rafael™, 2016-04-05
@maxminimus

event.preventDefault()

S
sashabeep, 2016-04-06
@sashabeep

Sometimes I read some questions and think: Why?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question