swiper
Version:
Most modern mobile touch slider and framework with hardware accelerated transitions
14 lines (12 loc) • 499 B
JavaScript
exports.__esModule = true;
exports.default = setGrabCursor;
function setGrabCursor(moving) {
var swiper = this;
if (swiper.support.touch || !swiper.params.simulateTouch || swiper.params.watchOverflow && swiper.isLocked || swiper.params.cssMode) return;
var 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';
}
;