Authored by 梁志锋

use requestAnimationFrame for scroll event

@@ -133,7 +133,7 @@ function search() { @@ -133,7 +133,7 @@ function search() {
133 }); 133 });
134 } 134 }
135 135
136 -$('.maybe-like p').on('touchstart', function (e) { 136 +$('.maybe-like p').on('touchstart', function(e) {
137 search(); 137 search();
138 }); 138 });
139 139
@@ -347,7 +347,6 @@ $listNav.on('touchend touchcancel', function(e) { @@ -347,7 +347,6 @@ $listNav.on('touchend touchcancel', function(e) {
347 search(); 347 search();
348 } 348 }
349 } 349 }
350 -  
351 e.stopPropagation(); 350 e.stopPropagation();
352 }); 351 });
353 352
@@ -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