Answer the question
In order to leave comments, you need to log in
How to correctly subtract the content scroll step size?
Hello, please tell me how to correctly subtract the content scroll step size based on its size?
Or do they calculate differently?
The problem is in the step, either there is a gap, or such as it is now, it scrolls too much.
Thank you.
Example
Answer the question
In order to leave comments, you need to log in
You don't have to count anything.
It's enough just to hide the scrollbar, for example like this. jsfiddle.net/ufp8hqka/1
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question