unsetGrabCursor.js 292 Bytes
Newer Older
xhw committed
1 2 3 4 5 6 7 8 9
export default function unsetGrabCursor() {
	const swiper = this;
	if (swiper.support.touch || swiper.params.watchOverflow && swiper.isLocked || swiper.params.cssMode) {
		return;
	}
	swiper[swiper.params.touchEventsTarget === 'container' ? '$el' : '$wrapperEl'].setCss({
		cursor: ''
	});
}