Authored by 梁志锋

gulp ge 文件提交

@@ -1769,16 +1769,16 @@ disableScroll(); @@ -1769,16 +1769,16 @@ disableScroll();
1769 // 移动端touch重写 1769 // 移动端touch重写
1770 var startX, startY; 1770 var startX, startY;
1771 $sideNav.on('touchstart', function(e){ 1771 $sideNav.on('touchstart', function(e){
1772 - startX = e.changedTouches[0].pageX;  
1773 - startY = e.changedTouches[0].pageY; 1772 + startX = e.originalEvent.touches[0].pageX;
  1773 + startY = e.originalEvent.touches[0].pageY;
1774 }); 1774 });
1775 1775
1776 // 仿innerScroll方法 1776 // 仿innerScroll方法
1777 $sideNav.on('touchmove', function(e){ 1777 $sideNav.on('touchmove', function(e){
1778 e.stopPropagation(); 1778 e.stopPropagation();
1779 1779
1780 - var deltaX = e.changedTouches[0].pageX - startX;  
1781 - var deltaY = e.changedTouches[0].pageY - startY; 1780 + var deltaX = e.originalEvent.touches[0].pageX - startX;
  1781 + var deltaY = e.originalEvent.touches[0].pageY - startY;
1782 1782
1783 // 只能纵向滚 1783 // 只能纵向滚
1784 if(Math.abs(deltaY) < Math.abs(deltaX)){ 1784 if(Math.abs(deltaY) < Math.abs(deltaX)){
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.