Skip to content

Commit

Permalink
Update setGrabCursor.js
Browse files Browse the repository at this point in the history
  • Loading branch information
danijelGombac authored Apr 12, 2018
1 parent 8945577 commit c730cfc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/core/grab-cursor/setGrabCursor.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Support from '../../../utils/support';

export default function (moving) {
const swiper = this;
if (Support.touch || !swiper.params.simulateTouch) return;
if (Support.touch || !swiper.params.simulateTouch || (swiper.params.watchOverflow && swiper.isLocked)) return;
const el = swiper.el;
el.style.cursor = 'move';
el.style.cursor = moving ? '-webkit-grabbing' : '-webkit-grab';
Expand Down

0 comments on commit c730cfc

Please sign in to comment.