Skip to content

Commit

Permalink
fix: event
Browse files Browse the repository at this point in the history
  • Loading branch information
eiinu committed Dec 6, 2023
1 parent 9f459ce commit 884b625
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/packages/__VUE/range/index.taro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ export default create({
dragStatus.value = 'start';
event.stopPropagation();
event.preventDefault();
if (event.cancelable) event.preventDefault();
};
// 初始化 range 宽高
Expand All @@ -373,7 +373,7 @@ export default create({
return;
}
event.stopPropagation();
event.preventDefault();
if (event.cancelable) event.preventDefault();
if (dragStatus.value === 'start') {
emit('dragStart');
}
Expand Down Expand Up @@ -406,7 +406,7 @@ export default create({
}
dragStatus.value = '';
event.stopPropagation();
event.preventDefault();
if (event.cancelable) event.preventDefault();
};
const curValue = (idx?: number): number => {
const value =
Expand Down
2 changes: 1 addition & 1 deletion src/packages/__VUE/range/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ export default create({
}
updateValue(currentValue);
event.stopPropagation();
event.preventDefault();
if (event.cancelable) event.preventDefault();
};
const onTouchEnd = () => {
Expand Down

0 comments on commit 884b625

Please sign in to comment.