Skip to content

Commit

Permalink
fix bug after updating from master
Browse files Browse the repository at this point in the history
  • Loading branch information
broox committed Dec 22, 2024
1 parent 85059be commit d298257
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/events/onTouchEnd.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { nextTick } from '../../shared/utils.mjs';
import { now, nextTick } from '../../shared/utils.mjs';

export default function onTouchEnd(event) {
const swiper = this;
Expand Down Expand Up @@ -55,6 +55,9 @@ export default function onTouchEnd(event) {
swiper.setGrabCursor(false);
}

const touchEndTime = now();
const timeDiff = touchEndTime - data.touchStartTime;

nextTick(() => {
if (!swiper.destroyed) swiper.allowClick = true;
});
Expand Down

0 comments on commit d298257

Please sign in to comment.