Skip to content

Commit e5d236b

Browse files
author
Jay Hsueh
committed
fix: 🐛 支持嵌套滚动
Closes: #110
1 parent 638fb4f commit e5d236b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

library/src/main/ets/components/hprichtext/HPRichTextV2.ets

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,10 @@ export struct HPRichTextV2 {
148148
this.nodesBuilder({ nodes: this.htmlJson.nodes });
149149
}
150150
.alignItems(HorizontalAlign?.Start)
151-
}
151+
}.nestedScroll({
152+
scrollForward: NestedScrollMode.PARENT_FIRST,
153+
scrollBackward: NestedScrollMode.SELF_FIRST
154+
})
152155
} else {
153156
Column() {
154157
this.nodesBuilder({ nodes: this.htmlJson.nodes });

0 commit comments

Comments
 (0)