Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
libai
/
footseen-large-website
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d671580b
authored
Dec 02, 2022
by
libai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
测试
parent
ded2a79e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
20 deletions
mTest/room/liveRoom.html
mTest/room/liveRoom.html
View file @
d671580b
...
...
@@ -2174,26 +2174,26 @@ $(function(){
}
})
}
//
var lastTouchEnd = 0 //更新手指弹起的时间
//
document.documentElement.addEventListener("touchstart", function (event) {
//
//多根手指同时按下屏幕,禁止默认行为
//
if (event.touches.length > 1) {
//
event.preventDefault();
//
}
//
});
//
document.documentElement.addEventListener("touchend", function (event) {
//
var now = (new Date()).getTime();
//
if (now - lastTouchEnd
<=
300
)
{
//
//当两次手指弹起的时间小于300毫秒,认为双击屏幕行为
//
event.preventDefault();
//
}else{ // 否则重新手指弹起的时间
//
lastTouchEnd = now;
//
}
//
}, false);
//
//阻止双指放大页面
//
document.documentElement.addEventListener("gesturestart", function (event) {
//
event.preventDefault();
//
});
var
lastTouchEnd
=
0
//更新手指弹起的时间
document
.
documentElement
.
addEventListener
(
"touchstart"
,
function
(
event
)
{
//多根手指同时按下屏幕,禁止默认行为
if
(
event
.
touches
.
length
>
1
)
{
event
.
preventDefault
();
}
});
document
.
documentElement
.
addEventListener
(
"touchend"
,
function
(
event
)
{
var
now
=
(
new
Date
()).
getTime
();
if
(
now
-
lastTouchEnd
<=
300
)
{
//当两次手指弹起的时间小于300毫秒,认为双击屏幕行为
event
.
preventDefault
();
}
else
{
// 否则重新手指弹起的时间
lastTouchEnd
=
now
;
}
},
false
);
//阻止双指放大页面
document
.
documentElement
.
addEventListener
(
"gesturestart"
,
function
(
event
)
{
event
.
preventDefault
();
});
function
cardUp
(
e
){
if
(
e
<
0
){
layer
.
msg
(
"噓,咱們還是不要打擾神秘人的好~"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment