Commit 034e1930 authored by Rafael Weinstein's avatar Rafael Weinstein

Fix bug in city-list autoscroll

TBR=esprehn

Review URL: https://codereview.chromium.org/759483003
parent a0df465d
......@@ -31,7 +31,7 @@ window.startLoad = new Date().getTime();
<city-list></city-list>
<script>
var cityList = document.querySelector('city-list');
var scrollBy = location.search.match(/auto=([0-9]+)/)[1];
var scrollBy = Number(location.search.match(/auto=([0-9]+)/)[1]);
function autoScroll() {
cityList.scrollBy(scrollBy);
......@@ -39,7 +39,6 @@ window.startLoad = new Date().getTime();
}
if (scrollBy) {
console.log('Autoscroll by ' + scrollBy);
setTimeout(function() {
requestAnimationFrame(autoScroll);
}, 200)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment