Skip to content

Instantly share code, notes, and snippets.

@teabyii
Created January 19, 2016 12:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save teabyii/c5f527f8fd7d07a30b65 to your computer and use it in GitHub Desktop.
Save teabyii/c5f527f8fd7d07a30b65 to your computer and use it in GitHub Desktop.
chrome scroll issue
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Scroll test</title>
</head>
<body>
<div style="height:1800px">
hello world
</div>
<script src="http://code.jquery.com/jquery-1.12.0.min.js"></script>
<script>
// setTimeout(function() {
// window.scrollTo(0, 300)
// }, 0)
window.scrollTo(0, 300)
// $(document).scrollTop(300)
// $(window).on('scroll', function() {
// console.log(1)
// })
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment