NativeScript UIMaterialBottomSheet如何禁用拖动效果



我在应用程序中使用NativeScript UIMaterialBottomSheet,我想完全禁用拖动效果(适用于ios和android(,因为我想截取触摸手势来增加/减少弯曲滑块(它不是从ScrollView继承的,所以我无法使用(。显然,我设置了参数";disseOnDraggingDownSheet";设置为false,但底部页面继续捕捉触摸事件。

我尝试过各种方法(例如,在主底部视图上设置为"false"属性,如"反弹"或"isUserInteractionEnabled"(,但都不起作用。

有人知道解决方案吗?

您可以将dismissOnDraggingDownSheet属性设置为false

import MyComponent from 'MyComponent.vue';
//inside another Vue component
const options: BottomSheetOptions = {
dismissOnDraggingDownSheet: false
};
this.$showBottomSheet(MyComponent, options)

最新更新