diff --git a/packages/float-layout/index.ts b/packages/float-layout/index.ts index f9cdc0dc..19509285 100644 --- a/packages/float-layout/index.ts +++ b/packages/float-layout/index.ts @@ -2,6 +2,7 @@ import { h, defineComponent, computed, ref, nextTick, watch, mergeProps, PropTyp import { handleTouchScroll } from '@taro-ui-vue3/utils/common' import { ScrollView, Text, View } from '@tarojs/components' +import { CommonEvent } from '@tarojs/components/types/common' import { AtFloatLayoutProps } from '@taro-ui-vue3/types/float-layout' const AtFloatLayout = defineComponent({ @@ -63,10 +64,15 @@ const AtFloatLayout = defineComponent({ nextTick(handleClose) } + function handleTouchMove(e: CommonEvent) { + e.stopPropagation() + } + return () => ( h(View, mergeProps(attrs, { class: rootClass.value, - catchMove: true + catchMove: true, + onTouchmove: handleTouchMove }), { default: () => [ // overlay