提交 4ef3587d 编写于 作者: fxy060608's avatar fxy060608

chore: merge

......@@ -24,6 +24,7 @@ const props = {
}
type Props = ExtractPropTypes<typeof props>
type _TouchEvent = '_onTouchstart' | '_onTouchmove' | '_onTouchend'
export interface MovableViewContext {
rootRef: Ref<HTMLElement | null>
setParent: Function
......@@ -49,10 +50,7 @@ export default /*#__PURE__*/ defineBuiltInComponent({
let events = ['onTouchstart', 'onTouchmove', 'onTouchend']
events.forEach((event) => {
let existing = (_listeners as any)[event]
let ours =
movableAreaEvents[
`_${event}` as '_onTouchstart' | '_onTouchmove' | '_onTouchend'
]
let ours = movableAreaEvents[`_${event}` as _TouchEvent]
;(_listeners as any)[event] = existing
? [].concat(existing, ours as any)
: ours
......
......@@ -388,6 +388,7 @@ function useMovableViewState(
}
}
function __handleTouchMove(event: TouchtrackEvent) {
event.stopPropagation()
if (!_isScaling && !props.disabled && _isTouching) {
let x = _translateX
let y = _translateY
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册