fix: select scorll in mobile (#3707)
parent
006e23ab69
commit
7303e9ae86
|
@ -1,5 +1,5 @@
|
|||
import supportsPassive from '../../_util/supportsPassive';
|
||||
import { watch, Ref } from 'vue';
|
||||
import { watch, Ref, onMounted } from 'vue';
|
||||
|
||||
const SMOOTH_PTG = 14 / 15;
|
||||
|
||||
|
@ -80,7 +80,10 @@ export default function useMobileTouchMove(
|
|||
}
|
||||
};
|
||||
|
||||
watch(inVirtual, val => {
|
||||
onMounted(() => {
|
||||
watch(
|
||||
inVirtual,
|
||||
val => {
|
||||
listRef.value.removeEventListener(
|
||||
'touchstart',
|
||||
onTouchStart,
|
||||
|
@ -103,5 +106,8 @@ export default function useMobileTouchMove(
|
|||
: false,
|
||||
);
|
||||
}
|
||||
},
|
||||
{ immediate: true },
|
||||
);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue