use requestAnimationFrame for scroll event
Showing
3 changed files
with
2 additions
and
3 deletions
@@ -72,7 +72,7 @@ $(window).scroll(function() { | @@ -72,7 +72,7 @@ $(window).scroll(function() { | ||
72 | 72 | ||
73 | hotrank(page, sort, id, notab); | 73 | hotrank(page, sort, id, notab); |
74 | hotnav = new Hammer(document.getElementById('hotRank')); | 74 | hotnav = new Hammer(document.getElementById('hotRank')); |
75 | -hotnav.on('tap', function (e) { | 75 | +hotnav.on('tap', function(e) { |
76 | var ev = ev || window.event; | 76 | var ev = ev || window.event; |
77 | var target = ev.target || ev.srcElement; | 77 | var target = ev.target || ev.srcElement; |
78 | 78 |
-
Please register or login to post a comment