Authored by 梁志锋

use requestAnimationFrame for scroll event

... ... @@ -133,7 +133,7 @@ function search() {
});
}
$('.maybe-like p').on('touchstart', function (e) {
$('.maybe-like p').on('touchstart', function(e) {
search();
});
... ...
... ... @@ -347,7 +347,6 @@ $listNav.on('touchend touchcancel', function(e) {
search();
}
}
e.stopPropagation();
});
... ...
... ... @@ -72,7 +72,7 @@ $(window).scroll(function() {
hotrank(page, sort, id, notab);
hotnav = new Hammer(document.getElementById('hotRank'));
hotnav.on('tap', function (e) {
hotnav.on('tap', function(e) {
var ev = ev || window.event;
var target = ev.target || ev.srcElement;
... ...