What makes it seem like Python for Data Analysis is a pirated copy? I figured since it was hosted from Canisius College it would be legally distributed.
I don't want to host pirated content, so if it is I will remove it.
Also the PDF has a link to a notorious ebook pirate platform on every page. If you really believe content on college pages is legal, you must be very naive. I've never seen a naive webmaster that uses domain privacy though.
Personally I wasn't surprised to see (possibly) pirated content on an .edu site with a ~username URL, as the ~ suggested a student's page, where unauthorised content might pop up to share with classmates and stay up undetected by the college.
What surprised me is that the owner of the Canisius page appears to be teaching staff rather than a student. The other books hosted there seem to be legitimately freely available, however, so I'm guessing that was also a naive mistake.
I made a change to the code, but since I don't have a touchpad, I won't be able to tell if it's fixed. Let me know what happens if you happen to go back to the page.
It's still not working well on my touchpad. It stutters badly. I honestly would recommend removing it. I checked it on my desktop. It works there, but the difference scroll speed is unhelpful and actually a little bothersome.
Smooth scrolling is already implemented correctly in the browser. Your implementation is just a hack that hijacks the normal behaviour a user is accustomed to and just gives back a version that just feels wrong to interact with, even without performance issues.
That said, if I'm being honest, it's fairly unpleasant to use on a desktop with a mouse. It scrolls you to the top after it loads (which is after the rest of the page), and behaves differently than the computer normally does...