[improvement] check event.cancelable before preventDefault
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { use } from '../utils';
|
||||
import { prevent } from '../utils/event';
|
||||
import { preventDefault } from '../utils/event';
|
||||
import { deepClone } from '../utils/deep-clone';
|
||||
import { pickerProps } from './shared';
|
||||
import Loading from '../loading';
|
||||
@@ -177,7 +177,7 @@ export default sfc({
|
||||
) : (
|
||||
h()
|
||||
)}
|
||||
<div class={bem('columns')} style={columnsStyle} onTouchmove={prevent}>
|
||||
<div class={bem('columns')} style={columnsStyle} onTouchmove={preventDefault}>
|
||||
{columns.map((item, index) => (
|
||||
<PickerColumn
|
||||
valueKey={this.valueKey}
|
||||
|
||||
Reference in New Issue
Block a user