Perelinkovka page using anchor tags (A c parameter name). At the top of the contents: a list of references to the underlying subchapters. Now I somehow catch such transitions by using the scroll event(), but this is incorrect and buggy. How to do it properly?