Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
YOHOOD
·
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
whb
10 years ago
Commit
dcdfb057ccc4076be2e7e271560a71ccd996e1cb
1 parent
64616b01
客户端h5的屏幕滚动
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletions
res/js/mobile.js
res/js/mobile.js
View file @
dcdfb05
...
...
@@ -55,6 +55,10 @@ define('mobile', function(require, exports) {
$
(
"#hook"
).
animate
({
"marginTop"
:
"0px"
},
200
);
//隐藏层出现,不刷新
if
(
$
(
".overlay"
).
css
(
"display"
)
==
"block"
)
{
return
true
;
};
$
(
"#hook"
).
delay
(
500
).
slideUp
(
200
,
function
()
{
window
.
location
.
reload
()
})
...
...
@@ -69,10 +73,11 @@ define('mobile', function(require, exports) {
//屏幕静止滚动
$
(
"body"
).
bind
(
'touchmove'
,
function
(
event
)
{
//隐藏
屏幕
//隐藏
层出现,屏幕静止滚动
if
(
$
(
".overlay"
).
css
(
"display"
)
==
"block"
)
{
event
.
preventDefault
();
}
return
true
;
});
};
...
...
Please
register
or
login
to post a comment