fix: carousel's pauseOnDotsHover not work (#3519)

* fix: carousel's pauseOnDotsHover not work

* fix: carousel onMouseEnter event
pull/3541/head
青沛 4 years ago committed by GitHub
parent 5e92d9a7f2
commit b7943b38ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -604,7 +604,6 @@ export default {
...trackProps, ...trackProps,
focusOnSelect: this.focusOnSelect ? this.selectHandler : null, focusOnSelect: this.focusOnSelect ? this.selectHandler : null,
ref: this.trackRefHandler, ref: this.trackRefHandler,
onMouseenter: pauseOnHover ? this.onTrackOver : noop,
onMouseleave: pauseOnHover ? this.onTrackLeave : noop, onMouseleave: pauseOnHover ? this.onTrackLeave : noop,
onMouseover: pauseOnHover ? this.onTrackOver : noop, onMouseover: pauseOnHover ? this.onTrackOver : noop,
}; };
@ -635,7 +634,6 @@ export default {
dotProps = { dotProps = {
...dotProps, ...dotProps,
clickHandler: this.changeSlide, clickHandler: this.changeSlide,
onMouseenter: pauseOnDotsHover ? this.onDotsLeave : noop,
onMouseover: pauseOnDotsHover ? this.onDotsOver : noop, onMouseover: pauseOnDotsHover ? this.onDotsOver : noop,
onMouseleave: pauseOnDotsHover ? this.onDotsLeave : noop, onMouseleave: pauseOnDotsHover ? this.onDotsLeave : noop,
}; };

Loading…
Cancel
Save