Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using document.scrollingElement in toc.js #441

Merged
merged 1 commit into from
Mar 17, 2017

Conversation

T2hhbmEK
Copy link
Contributor

@T2hhbmEK T2hhbmEK commented Mar 14, 2017

Try to support FireGestures (Firefox) and similar gesture extensions in Google Chrome.
These browser extensions/addons maybe(not confirmed) modify body.scrollTop or html.scrollTop when scrolling gestures are triggered. Using other element as the scrolling element will fail these gestures.
However document.scrollingElement is experimental, and not all browsers support it(See MDN). Polyfill (IE 11 tested) was taken from scrollingelement.js.

@lzjqsdd lzjqsdd merged commit 4080c2a into hexojs:master Mar 17, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants