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

Commit

Permalink
fix(float-layout): resume use of e.stopPropagation for h5
Browse files Browse the repository at this point in the history
  • Loading branch information
b2nil committed May 12, 2021
1 parent 0c394ec commit 4467278
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion packages/float-layout/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4467278

Please sign in to comment.