Toggle navigation
Toggle navigation
This project
Loading...
Sign in
mobile
/
YH_RNComponent
·
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
chenl
8 years ago
Commit
b4a5be0815754887698dc50d4b9c1dba8a4aaa30
1 parent
bdf2c9f0
优化了滑动冲突。review by luliang。
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
js/home/components/home/Home.js
js/home/components/home/Home.js
View file @
b4a5be0
...
...
@@ -423,8 +423,8 @@ export default class Home extends Component {
//因为android下拉刷新控件与swiper的滑动事件会引起冲突,所以将listview滚动位置加1以阻止下拉刷新
_onChildScrollToPreventRefresh
()
{
if
(
Platform
.
OS
===
'android'
&&
this
.
state
.
currentY
<
height
&&
this
.
listView
){
this
.
listView
.
scrollTo
({
x
:
0
,
y
:
this
.
state
.
currentY
+
1
,
animated
:
false
});
if
(
Platform
.
OS
===
'android'
&&
this
.
state
.
currentY
==
0
&&
this
.
listView
){
this
.
listView
.
scrollTo
({
x
:
0
,
y
:
1
,
animated
:
false
});
}
}
...
...
Please
register
or
login
to post a comment