UNPKG

swiper

Version:

Most modern mobile touch slider and framework with hardware accelerated transitions

12 lines (10 loc) 472 B
import Support from '../../../utils/support'; export default function (moving) { const swiper = this; if (Support.touch || !swiper.params.simulateTouch || (swiper.params.watchOverflow && swiper.isLocked) || swiper.params.cssMode) return; const el = swiper.el; el.style.cursor = 'move'; el.style.cursor = moving ? '-webkit-grabbing' : '-webkit-grab'; el.style.cursor = moving ? '-moz-grabbin' : '-moz-grab'; el.style.cursor = moving ? 'grabbing' : 'grab'; }