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
3dff81ae
Commit
3dff81ae
authored
Jun 05, 2019
by
JingChao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update fastclick.js
parent
8d3b7580
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
10 deletions
+11
-10
fastclick.js
lib/fastclick.js
+11
-10
No files found.
lib/fastclick.js
View file @
3dff81ae
...
@@ -168,8 +168,11 @@
...
@@ -168,8 +168,11 @@
window
.
addEventListener
(
'native.keyboardhide'
,
function
(
e
)
{
window
.
addEventListener
(
'native.keyboardhide'
,
function
(
e
)
{
if
(
scollFlag
){
if
(
scollFlag
){
scollFlag
=
false
scollFlag
=
false
//clickElement.fastClickScrollParent.style.paddingBottom = contentPaddingBottom+'px'
if
(
contentPaddingBottom
){
clickElement
.
fastClickScrollParent
.
style
.
paddingBottom
=
contentPaddingBottom
+
'px'
}
else
{
clickElement
.
fastClickScrollParent
.
style
.
paddingBottom
=
'0px'
clickElement
.
fastClickScrollParent
.
style
.
paddingBottom
=
'0px'
}
clickElement
.
fastClickScrollParent
.
style
.
transform
=
"translate(0px, 0px) scale(1) translateZ(0px)"
clickElement
.
fastClickScrollParent
.
style
.
transform
=
"translate(0px, 0px) scale(1) translateZ(0px)"
clickElement
.
fastClickScrollParent
.
scrollTop
=
scrollTop
clickElement
.
fastClickScrollParent
.
scrollTop
=
scrollTop
}
}
...
@@ -375,8 +378,12 @@
...
@@ -375,8 +378,12 @@
if
(
parentElement
.
classList
.
contains
(
'content'
))
{
if
(
parentElement
.
classList
.
contains
(
'content'
))
{
scrollParent
=
parentElement
scrollParent
=
parentElement
targetElement
.
fastClickScrollParent
=
parentElement
targetElement
.
fastClickScrollParent
=
parentElement
// targetElement.fastClickScrollParent.style.paddingBottom = '0px'
if
(
contentPaddingBottom
){
// targetElement.fastClickScrollParent.style.transform = "translate(0px, 0px) scale(1) translateZ(0px)"
targetElement
.
fastClickScrollParent
.
style
.
paddingBottom
=
contentPaddingBottom
+
'px'
}
else
{
targetElement
.
fastClickScrollParent
.
style
.
paddingBottom
=
'0px'
}
targetElement
.
fastClickScrollParent
.
style
.
transform
=
"translate(0px, 0px) scale(1) translateZ(0px)"
break
break
}
}
parentElement
=
parentElement
.
parentElement
parentElement
=
parentElement
.
parentElement
...
@@ -845,13 +852,7 @@
...
@@ -845,13 +852,7 @@
if
(
scollHeight
)
{
if
(
scollHeight
)
{
scollFlag
=
true
scollFlag
=
true
targetElement
.
fastClickScrollParent
.
style
.
paddingBottom
=
(
scollHeight
+
20
)
+
'px'
targetElement
.
fastClickScrollParent
.
style
.
paddingBottom
=
(
scollHeight
+
20
)
+
'px'
// targetElement.fastClickScrollParent.scrollTop= (scrollTop + scollHeight)
targetElement
.
fastClickScrollParent
.
style
.
transition
=
'all .2s cubic-bezier(0.165, 0.84, 0.44, 1) 0s'
;
targetElement
.
fastClickScrollParent
.
style
.
transition
=
'all .2s cubic-bezier(0.165, 0.84, 0.44, 1) 0s'
;
/*targetElement.fastClickScrollParent.style.webkitTransform = "translate(0px, -"+scollHeight+"px) scale(1) translateZ(0px)"
targetElement.fastClickScrollParent.style.MozTransform = "translate(0px, -"+scollHeight+"px) scale(1) translateZ(0px)"
targetElement.fastClickScrollParent.style.msTransform = "translate(0px, -"+scollHeight+"px) scale(1) translateZ(0px)"
targetElement.fastClickScrollParent.style.OTransform = "translate(0px, -"+scollHeight+"px) scale(1) translateZ(0px)"*/
targetElement
.
fastClickScrollParent
.
style
.
transform
=
"translate(0px, -"
+
scollHeight
+
"px) scale(1) translateZ(0px)"
targetElement
.
fastClickScrollParent
.
style
.
transform
=
"translate(0px, -"
+
scollHeight
+
"px) scale(1) translateZ(0px)"
}
}
}
}
...
...
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