Skip to content

Commit

Permalink
fix(mousewheel): Initialize lastClickTime to very old time (#6497)
Browse files Browse the repository at this point in the history
fixes #6496
  • Loading branch information
MRamonLeon committed Mar 20, 2023
1 parent 34973a1 commit 0983ded
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/core.js
Expand Up @@ -182,7 +182,7 @@ class Swiper {
// Form elements to match
focusableElements: swiper.params.focusableElements,
// Last click time
lastClickTime: now(),
lastClickTime: 0,
clickTimeout: undefined,
// Velocities
velocities: [],
Expand Down

0 comments on commit 0983ded

Please sign in to comment.