Showing
5 changed files
with
7 additions
and
7 deletions
framework @ 119c247f
@@ -63,13 +63,13 @@ function hideSideBar() { | @@ -63,13 +63,13 @@ function hideSideBar() { | ||
63 | } | 63 | } |
64 | } | 64 | } |
65 | 65 | ||
66 | -$('.overlay').on('touchend', function(e) { | 66 | +$('.overlay').on('touchstart', function(e) { |
67 | hideSideBar(); | 67 | hideSideBar(); |
68 | return false; | 68 | return false; |
69 | }); | 69 | }); |
70 | 70 | ||
71 | //点击一级导航,弹出二级导航 | 71 | //点击一级导航,弹出二级导航 |
72 | -$sideNav.on('touchend', 'li', function (e) { | 72 | +$sideNav.on('touchstart', 'li', function (e) { |
73 | if ($(this).find('.sub-nav').size() > 0) { | 73 | if ($(this).find('.sub-nav').size() > 0) { |
74 | $('.sub-nav').removeClass('show'); | 74 | $('.sub-nav').removeClass('show'); |
75 | $(this).find('.sub-nav').addClass('show'); | 75 | $(this).find('.sub-nav').addClass('show'); |
@@ -83,12 +83,12 @@ $sideNav.on('touchend', 'li', function (e) { | @@ -83,12 +83,12 @@ $sideNav.on('touchend', 'li', function (e) { | ||
83 | 83 | ||
84 | //返回一级导航,收起二级导航 | 84 | //返回一级导航,收起二级导航 |
85 | $subNav.each(function () { | 85 | $subNav.each(function () { |
86 | - $(this).find('li').eq(0).on('touchend', function (e) { | 86 | + $(this).find('li').eq(0).on('touchstart', function (e) { |
87 | $('.sub-nav').removeClass('show'); | 87 | $('.sub-nav').removeClass('show'); |
88 | e.stopPropagation(); | 88 | e.stopPropagation(); |
89 | return false; | 89 | return false; |
90 | }); | 90 | }); |
91 | -}).on('touchend', function(e) { | 91 | +}).on('touchstart', function(e) { |
92 | if (e.currentTarget !== e.target) { | 92 | if (e.currentTarget !== e.target) { |
93 | $subNav.find('li').removeClass('current'); | 93 | $subNav.find('li').removeClass('current'); |
94 | } | 94 | } |
@@ -21,7 +21,7 @@ | @@ -21,7 +21,7 @@ | ||
21 | "yoho.iswiper": "3.0.1", | 21 | "yoho.iswiper": "3.0.1", |
22 | "iscroll": "5.1.2", | 22 | "iscroll": "5.1.2", |
23 | "import-style": "1.0.0", | 23 | "import-style": "1.0.0", |
24 | - "yoho.lazyload": "1.1.0", | 24 | + "yoho.lazyload": "1.1.2", |
25 | "yoho.handlebars": "3.0.3", | 25 | "yoho.handlebars": "3.0.3", |
26 | "yoho.hammer": "2.0.4" | 26 | "yoho.hammer": "2.0.4" |
27 | }, | 27 | }, |
-
Please register or login to post a comment