R
R
Roman Chernik2018-06-25 00:23:36
Layout
Roman Chernik, 2018-06-25 00:23:36

How to make a scroll of a certain block, but on the whole screen?

There is a block with the overflow-y: auto style, all page content fits on the screen. The entire scroll takes place in a smaller block, where all the content is. It is necessary that this block scrolls at any point in the document when scrolling.
PS For those who can not understand what I mean. Please don't try to list mouse events.
vkeNl0rOWvU.jpg

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Roman Chernik, 2018-06-26
@Zebren

If someone is interested in how to do such a thing, here is the code that allows you to do this:
https://jsfiddle.net/Zebren/rwbpo3ft/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question