Authored by xuqi

guang home hammer

... ... @@ -5,6 +5,7 @@
*/
var $ = require('jquery'),
Hammer = require('hammer'),
Swiper = require('yoho.iswiper');
var info = require('./info'),
... ... @@ -25,7 +26,7 @@ var $infoList = $('#info-list'),
var state = {};
var mySwiper;
var mySwiper, navHammer;
if ($loadMoreInfo.length > 0) {
$loading = $loadMoreInfo.children('.loading');
... ... @@ -56,8 +57,9 @@ info.initInfosEvt($infoList);
});
}());
$nav.delegate('.guang-nav-item', 'tap', function() {
var $this = $(this),
navHammer = new Hammer($nav[0]);
navHammer.on('tap', function(e) {
var $this = $(e.target).closest('.guang-nav-item'),
$content,
index;
... ...