mirror of
https://github.com/youzan/vant.git
synced 2025-10-22 11:54:02 +00:00
chore(touch): add isVertical/isHorizontal
This commit is contained in:
@@ -210,7 +210,7 @@ export default createComponent({
|
||||
const onTouchMove = (event) => {
|
||||
touch.move(event);
|
||||
|
||||
if (touch.direction.value === 'vertical') {
|
||||
if (touch.isVertical()) {
|
||||
preventDefault(event);
|
||||
|
||||
const { clientX, clientY } = event.touches[0];
|
||||
|
||||
Reference in New Issue
Block a user