Answer the question
In order to leave comments, you need to log in
Super scroll with mouse wheel on anchors?
Good day. This question has already been raised on the toaster and there is an answer and a solution to the problem, but there is also one drawback (big for me), which I beg you to help me solve.
Lakewake - here he suggested a very good (in my opinion) algorithm for solving this issue (at least I haven’t found a better solution for my needs yet) - Scroll works perfectly, the disadvantage is that the scroll stops at the last anchor and freezes in place , the page has not ended yet and there is some content, but since there are no more anchors, there is no way to continue scrolling up (down works).
With proper distribution of anchors, as a rule, this remains a small piece of ~ 100px, but the value is not constant.
If you do not set anchors at all, and there is still a lot of content after the last anchor, then it is not possible to see it.
Example: https://jsfiddle.net/wqL8btcw/
You can also anchor the very last div But! In this case, the content that will be between the penultimate and last div will be scrolled and not seen.
The essence of the question is to improve this script, namely to make it so that:
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question