Skip to content

Commit

Permalink
feat(vue-next): fix onInterceptTouchEvent not work
Browse files Browse the repository at this point in the history
  • Loading branch information
zealotchen0 committed Aug 19, 2024
1 parent b95df1b commit 292f7c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion driver/js/packages/hippy-vue-next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@hippy/vue-next",
"version": "unspecified",
"version": "3.0.2-rc.0",
"description": "Vue-Next binding for Hippy native framework",
"author": "OpenHippy Team",
"homepage": "https://hippyjs.org",
Expand Down
6 changes: 5 additions & 1 deletion driver/js/packages/hippy-vue-next/src/patch-prop.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ export function patchProp(
patchStyle(el, prevValue, nextValue);
break;
default:
if (isOn(key)) {
if (isOn(key) && !isNativeEvent(key)) {
// event prop
patchEvent(el, key, prevValue, nextValue, parentComponent);
} else {
Expand All @@ -60,3 +60,7 @@ export function patchProp(
break;
}
}

export function isNativeEvent(key: string) {
return ['onInterceptTouchEvent', 'onInterceptPullUpEvent'].indexOf(key) >= 0;
}

0 comments on commit 292f7c4

Please sign in to comment.