fix(Stepper): double tap to scroll in safari (#6882)

* fix(Stepper): double tap to scroll in safari

* Update index.js

Co-authored-by: neverland <416417567@163.com>
This commit is contained in:
Jake
2020-07-29 10:58:41 +08:00
committed by chenjiahan
co-authored by neverland
parent f8b9399ab5
commit 56519228e8
+3 -1
View File
@@ -273,7 +273,9 @@ export default createComponent({
render() {
const createListeners = (type) => ({
on: {
click: () => {
click: (e) => {
// disable double tap scrolling on mobile safari
e.preventDefault();
this.type = type;
this.onChange();
},