unsetGrabCursor.js 292 B

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