Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOBUYWAP
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
梁志锋
9 years ago
Commit
cf8836ff162cfaf30c1b2cf2e377711378bb5e57
1 parent
b51f356f
gulp ge 文件提交
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
static/dist/myohobuy/1.3.6/index-debug.js
static/dist/myohobuy/1.3.6/index.css
static/dist/myohobuy/1.3.6/index.js
static/dist/myohobuy/1.3.6/index-debug.js
View file @
cf8836f
...
...
@@ -1769,16 +1769,16 @@ disableScroll();
// 移动端touch重写
var
startX
,
startY
;
$sideNav
.
on
(
'touchstart'
,
function
(
e
){
startX
=
e
.
changedTouches
[
0
].
pageX
;
startY
=
e
.
changedTouches
[
0
].
pageY
;
startX
=
e
.
originalEvent
.
touches
[
0
].
pageX
;
startY
=
e
.
originalEvent
.
touches
[
0
].
pageY
;
});
// 仿innerScroll方法
$sideNav
.
on
(
'touchmove'
,
function
(
e
){
e
.
stopPropagation
();
var
deltaX
=
e
.
changedTouches
[
0
].
pageX
-
startX
;
var
deltaY
=
e
.
changedTouches
[
0
].
pageY
-
startY
;
var
deltaX
=
e
.
originalEvent
.
touches
[
0
].
pageX
-
startX
;
var
deltaY
=
e
.
originalEvent
.
touches
[
0
].
pageY
-
startY
;
// 只能纵向滚
if
(
Math
.
abs
(
deltaY
)
<
Math
.
abs
(
deltaX
)){
...
...
static/dist/myohobuy/1.3.6/index.css
View file @
cf8836f
This diff could not be displayed because it is too large.
static/dist/myohobuy/1.3.6/index.js
View file @
cf8836f
This diff could not be displayed because it is too large.
Please
register
or
login
to post a comment