Skip to content
This repository was archived by the owner on Dec 6, 2021. It is now read-only.

Commit 4467278

Browse files
committed
fix(float-layout): resume use of e.stopPropagation for h5
1 parent 0c394ec commit 4467278

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

packages/float-layout/index.ts

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { h, defineComponent, computed, ref, nextTick, watch, mergeProps, PropTyp
22
import { handleTouchScroll } from '@taro-ui-vue3/utils/common'
33

44
import { ScrollView, Text, View } from '@tarojs/components'
5+
import { CommonEvent } from '@tarojs/components/types/common'
56
import { AtFloatLayoutProps } from '@taro-ui-vue3/types/float-layout'
67

78
const AtFloatLayout = defineComponent({
@@ -63,10 +64,15 @@ const AtFloatLayout = defineComponent({
6364
nextTick(handleClose)
6465
}
6566

67+
function handleTouchMove(e: CommonEvent) {
68+
e.stopPropagation()
69+
}
70+
6671
return () => (
6772
h(View, mergeProps(attrs, {
6873
class: rootClass.value,
69-
catchMove: true
74+
catchMove: true,
75+
onTouchmove: handleTouchMove
7076
}), {
7177
default: () => [
7278
// overlay

0 commit comments

Comments
 (0)