We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Mac osx 10.9.4 chrome version 37.0.2062.94 chrome browser zoom, scroll failure.
The text was updated successfully, but these errors were encountered:
Still have a problem.
Sorry, something went wrong.
Did my own implementation. There can be some optimization tricks. Beside, it should work only on scroll to bottom.
function scrollTo(docEl, to, duration) { let t0 = Date.now(); const diff = (to - docEl.scrollTop); const speed = diff / duration; const interval = setInterval(() => { const t1 = Date.now(); const delta = t1 - t0; docEl.scrollTop += (speed * delta); if (to - docEl.scrollTop <= 0) { docEl.scrollTop = to; clearInterval(interval); return; } t0 = t1; }, 0); } scrollTo(docEl, docEl.scrollTop + top, duration);
Successfully merging a pull request may close this issue.
Mac osx 10.9.4
chrome version 37.0.2062.94
chrome browser zoom, scroll failure.
The text was updated successfully, but these errors were encountered: