In short, mangadex uses an old version of the javascript library, which has a bug when using a certain browser extension.
This extension is called "Scroll To Top Button". At first I thought this extension had a bug.
So I started a topic on github. The developer of this extension discovered it...