HarmonyOS 当SymbolGlyph,Text,dialogContent三个开始滑动的时候,必须点击右侧的滚动条才可以滑动,点击文字区域无法滑动

代码如下:

private privacyUpdateDialog() {
  Scroll() {
    Column() {
      Row() {
        SymbolGlyph($r('sys.symbol.person_shield_fill'))
          .fontSize(this.PERSON_SHIELD_FILL_SIZE)
          .fontColor([$r('sys.color.icon_emphasize')])
      }
      Row() {
        Text(this.dialogTexts?.title)
          .commonTitleRowStyle(this.subCode, this.titleMaxLines, this.scaleSize)
          .padding({
            bottom: this.PERSON_SHIELD_FILL_PADDING_HEIGHT,
            top: this.PERSON_SHIELD_FILL_PADDING_HEIGHT
          })
      }
      .constraintSize({ minHeight: this.dialogTitleHeight })
      .justifyContent(FlexAlign.Center)
      .alignItems(VerticalAlign.Center)

      this.dialogContent();
    }
  }.scrollable(ScrollDirection.Vertical)
  .scrollBar(BarState.Auto)
  .scrollBarWidth(0)

}
  • 1.
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.
  • 26.
  • 27.
HarmonyOS
2024-12-26 14:11:30
980浏览
收藏 0
回答 1
回答 1
按赞同
/
按时间
superinsect

应该在里面的scroll上面加上这个属性:

.nestedScroll({ scrollForward: NestedScrollMode.PARALLEL, scrollBackward: NestedScrollMode.PARALLEL })
  • 1.
分享
微博
QQ
微信
回复
2024-12-26 17:08:07
相关问题
视频进度滑动种实现方式
3106浏览 • 1回复 待解决
HarmonyOS 半页滑动点击后变成整页
705浏览 • 1回复 待解决
HarmonyOS 自定义滑动
666浏览 • 1回复 待解决
HarmonyOS list无法滑动
539浏览 • 1回复 待解决
HarmonyOS webView隐藏滚动条
701浏览 • 1回复 待解决
HarmonyOS Scroll组件无法滑动
1194浏览 • 1回复 待解决
如何获取List组件滚动条滚动距离
3489浏览 • 1回复 待解决