Skip to content

Commit 40e504b

Browse files
committed
fix: scrollEdgeTop
1 parent 946a19d commit 40e504b

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

harmony/smart_refresh_layout.har

-898 Bytes
Binary file not shown.

harmony/smart_refresh_layout/src/main/ets/SmartRefreshControl.ets

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ export struct SmartRefreshControl {
170170

171171
checkHeaderMove(displayedHeaderHeight:number){
172172
// 滚动时保持吸顶
173-
if (this.getScroller().currentOffset().yOffset !== 0){
173+
if (this.getScroller().currentOffset().yOffset !== 0 && displayedHeaderHeight > 0){
174174
this.getScroller().scrollEdge(Edge.Top)
175175
}
176176
if (this.unlockScrollingCallback === undefined && displayedHeaderHeight != 0){

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@react-native-oh-tpl/react-native-smartrefreshlayout",
3-
"version": "0.6.7-0.1.1",
3+
"version": "0.6.7-0.1.2",
44
"description": "基于android SmartRefreshLayout的封装",
55
"harmony": {
66
"alias": "react-native-smartrefreshlayout"

0 commit comments

Comments
 (0)