Since the code is the same, but only the browser updated, this is probably a browser change (albeit, possibly an intentional one).
The code is sniffing the user agent and decides what to scroll (<html> or <body>). I cannot verify that this is the problem, but Chrome 61 no longer uses <body>, it uses <html> instead (in non-quirks mode), so that would be my first guess.
Here is the code (beautified) -
this.checkElements = function() {
var t = navigator.userAgent.toLowerCase().indexOf("webkit") != -1 ? "body" : "html"