-
Notifications
You must be signed in to change notification settings - Fork 91
Open
Description
Chrome has shipped smooth scrolling for a number of releases now. And in release 61 the scrolling element is no longer the body but the documentElement as specified in the CSS spec.
When this plugin is used it checks the user agent and assumes the scrolling element is the body if it has AppleWebKit in it (which Chrome does).
Ultimately smoothscrolling should be disabled in Chrome as the native platform does it itself. Or if you really wish to control scrolling yourself you should use the document.scrollingElement as the target of the scroll (if the node is defined).
Something like
target = document.scrollingElement ? document.scrollingElement : e("body");
Metadata
Metadata
Assignees
Labels
No labels