类似前端web css的pointer-events属性,目前通过Stack实现B元素覆盖到A元素上,禁止B元素滑动(设置了enabled(false)),可否直接触发A元素的滑动事件,目前因为B元素覆盖了导致AB元素都无法滑动。
Stack({ alignContent: Alignment.BottomStart }) {
Scroll() {
Row() {}.height(2000)
}.width('20%'),
Scroll() {
Row() {}.height(2000)
}.width('100%'),
})
请参考如下demo: