Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
F
fastclick
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
easyUI
fastclick
Commits
c2d9bd4a
Commit
c2d9bd4a
authored
Jun 04, 2019
by
Nature
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
键盘监听函数
parent
d761bdc5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
14 deletions
+9
-14
fastclick.js
lib/fastclick.js
+9
-14
No files found.
lib/fastclick.js
View file @
c2d9bd4a
...
...
@@ -163,6 +163,15 @@
},
false
)
layer
.
onclick
=
null
}
//初始化键盘监听方式
window
.
addEventListener
(
'native.keyboardhide'
,
function
(
e
)
{
if
(
scollFlag
){
scollFlag
=
false
clickElement
.
fastClickScrollParent
.
style
.
paddingBottom
=
'0px'
clickElement
.
fastClickScrollParent
.
style
.
transform
=
"translate(0px, 0px) scale(1) translateZ(0px)"
}
})
}
/**
...
...
@@ -815,20 +824,6 @@
return
false
}
window
.
addEventListener
(
'native.keyboardhide'
,
function
(
e
)
{
if
(
scollFlag
){
scollFlag
=
false
// clickElement.fastClickScrollParent.style.paddingBottom = contentPaddingBottom + 'px'
// clickElement.fastClickScrollParent.scrollTop =scrollTop
targetElement
.
fastClickScrollParent
.
style
.
paddingBottom
=
'0px'
/*clickElement.fastClickScrollParent.style.webkitTransform = "translate(0px, 0px) scale(1) translateZ(0px)"
clickElement.fastClickScrollParent.style.MozTransform = "translate(0px, 0px) scale(1) translateZ(0px)"
clickElement.fastClickScrollParent.style.msTransform = "translate(0px, 0px) scale(1) translateZ(0px)"
clickElement.fastClickScrollParent.style.OTransform = "translate(0px, 0px) scale(1) translateZ(0px)"*/
clickElement
.
fastClickScrollParent
.
style
.
transform
=
"translate(0px, 0px) scale(1) translateZ(0px)"
}
})
function
scollContent
(
pointY
,
targetElement
)
{
innerHeight
=
window
.
innerHeight
var
keyBoardHeight
=
getKeyBoardHeight
()
...
...
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