Skip to content

Commit

Permalink
fix(slider): stop propagation when touch slider
Browse files Browse the repository at this point in the history
  • Loading branch information
BeADre committed Jul 1, 2022
1 parent 515e7de commit 6b4bc18
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/varlet-ui/src/slider/Slider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
left: `${item.value}%`,
zIndex: thumbsProps[item.enumValue].active ? 1 : undefined,
}"
@touchstart="start($event, item.enumValue)"
@touchmove="move($event, item.enumValue)"
@touchstart.stop="start($event, item.enumValue)"
@touchmove.stop="move($event, item.enumValue)"
@touchend="end(item.enumValue)"
@touchcancel="end(item.enumValue)"
>
Expand Down

0 comments on commit 6b4bc18

Please sign in to comment.