Skip to content

Instantly share code, notes, and snippets.

@teabyii teabyii/scroll.html
Created Jan 19, 2016

What would you like to do?
chrome scroll issue
<!DOCTYPE html>
<html lang="en">
<meta charset="UTF-8">
<title>Scroll test</title>
<div style="height:1800px">
hello world
<script src=""></script>
// setTimeout(function() {
// window.scrollTo(0, 300)
// }, 0)
window.scrollTo(0, 300)
// $(document).scrollTop(300)
// $(window).on('scroll', function() {
// console.log(1)
// })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.