R
R
Roma Zvarich2017-01-31 02:39:30
JavaScript
Roma Zvarich, 2017-01-31 02:39:30

Is it possible to prevent scrolling outside of a block?

There is a block with scrolling.
For example, comments on the Toaster ( screenshot )
If you hover over this block and start scrolling, then when the bottom border of this scrollable block is reached, the entire page starts scrolling.
Is it possible to prevent the entire page from scrolling while the cursor is on this block?
Thank you.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
T
tema_sun, 2017-01-31
@hisbvdis

www.stackoverflow.com/a/16324762/5198222

O
Oleg, 2017-01-31
@politon

Alternatively https://jsfiddle.net/Politonius/Lzkzon6L/2/

P
profesor08, 2017-01-31
@profesor08

It is possible, but unnecessary. This will add a lot of inconvenience to users.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question