Skip to content

Instantly share code, notes, and snippets.

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

Embed
What would you like to do?
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
You can’t perform that action at this time.